Browse Source

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 years ago
parent
commit
7e46d5ca08

+ 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)) {
             player.sendMessage(LocaleLoader.getString("Teleport.Cancelled"));
+            mcMMOPlayer.setTeleportCommenceLocation(null);
             return;
         }