mirror of
https://github.com/garbagemule/MobArena.git
synced 2025-02-13 19:11:35 +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.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);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user