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.
This commit is contained in:
Ali Moghnieh 2016-12-26 21:26:38 +00:00
parent a2bcce9ab1
commit 7e46d5ca08
No known key found for this signature in database
GPG Key ID: F09D3A1BAF2E6D70

View File

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