mirror of
https://github.com/garbagemule/MobArena.git
synced 2025-02-18 21:41:34 +01:00
Try to fix flight exception with Setup Mode.
This commit is contained in:
parent
8a1e74a1a4
commit
acd441dd2e
@ -382,10 +382,14 @@ public class SetupCommand implements Command, Listener {
|
|||||||
arena.setEnabled(enabled);
|
arena.setEnabled(enabled);
|
||||||
arena.getRegion().save();
|
arena.getRegion().save();
|
||||||
arena.getRegion().reloadAll();
|
arena.getRegion().reloadAll();
|
||||||
player.setFlying(flying);
|
|
||||||
player.setAllowFlight(allowFlight);
|
|
||||||
player.getInventory().setContents(items);
|
player.getInventory().setContents(items);
|
||||||
player.getInventory().setArmorContents(armor);
|
player.getInventory().setArmorContents(armor);
|
||||||
|
|
||||||
|
// setAllowFlight(false) also handles setFlying(false)
|
||||||
|
player.setAllowFlight(allowFlight);
|
||||||
|
if (allowFlight) {
|
||||||
|
player.setFlying(flying);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user