Преглед изворни кода

Set TeleportCommenceLocation to null after Chimaera cancellation.

This makes the item usable once again, as the prechecks check to make sure the location is null.
Ali Moghnieh пре 8 година
родитељ
комит
7e46d5ca08
1 измењених фајлова са 1 додато и 0 уклоњено
  1. 1 0
      src/main/java/com/gmail/nossr50/runnables/items/ChimaeraWingWarmup.java

+ 1 - 0
src/main/java/com/gmail/nossr50/runnables/items/ChimaeraWingWarmup.java

@@ -31,6 +31,7 @@ public class ChimaeraWingWarmup extends BukkitRunnable {
 
 
         if (player.getLocation().distanceSquared(previousLocation) > 1.0 || !player.getInventory().containsAtLeast(ChimaeraWing.getChimaeraWing(0), 1)) {
         if (player.getLocation().distanceSquared(previousLocation) > 1.0 || !player.getInventory().containsAtLeast(ChimaeraWing.getChimaeraWing(0), 1)) {
             player.sendMessage(LocaleLoader.getString("Teleport.Cancelled"));
             player.sendMessage(LocaleLoader.getString("Teleport.Cancelled"));
+            mcMMOPlayer.setTeleportCommenceLocation(null);
             return;
             return;
         }
         }