* Fixed bug with flying disable/enable.

This commit is contained in:
Steffion 2013-10-06 20:52:26 +02:00
parent f2e80cfccf
commit a087be4cf1

View File

@ -142,10 +142,8 @@ public class ArenaHandler {
new ItemStack(Material.AIR));
player.getInventory().setBoots(
new ItemStack(Material.AIR));
player.setAllowFlight(pad.pFlying);
if (player.getAllowFlight()) {
player.setFlying(true);
}
player.setFlying(false);
player.setAllowFlight(false);
if ((Boolean) W.config
.get(ConfigC.shop_blockChooserv1Enabled) == true) {
@ -345,6 +343,9 @@ public class ArenaHandler {
player.teleport(pad.pLocation);
player.setGameMode(pad.pGameMode);
player.setAllowFlight(pad.pFlying);
if (player.getAllowFlight()) {
player.setFlying(true);
}
W.pData.remove(player);