Try to fix flight exception with Setup Mode.

This commit is contained in:
garbagemule 2013-09-09 09:04:52 +02:00
parent 8a1e74a1a4
commit acd441dd2e

View File

@ -382,10 +382,14 @@ public class SetupCommand implements Command, Listener {
arena.setEnabled(enabled);
arena.getRegion().save();
arena.getRegion().reloadAll();
player.setFlying(flying);
player.setAllowFlight(allowFlight);
player.getInventory().setContents(items);
player.getInventory().setArmorContents(armor);
// setAllowFlight(false) also handles setFlying(false)
player.setAllowFlight(allowFlight);
if (allowFlight) {
player.setFlying(flying);
}
}