Преглед на файлове

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;
         }
         }