From eb6f45a485837469a3d0932eebf071e38bae3ce2 Mon Sep 17 00:00:00 2001 From: Lixfel Date: Thu, 4 Jun 2020 13:18:46 +0200 Subject: [PATCH] Hotfix flying in arena issue Signed-off-by: Lixfel --- .../src/de/steamwar/fightsystem/fight/FightTeam.java | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/FightSystem_Main/src/de/steamwar/fightsystem/fight/FightTeam.java b/FightSystem_Main/src/de/steamwar/fightsystem/fight/FightTeam.java index fde3dbf..f2b79ca 100644 --- a/FightSystem_Main/src/de/steamwar/fightsystem/fight/FightTeam.java +++ b/FightSystem_Main/src/de/steamwar/fightsystem/fight/FightTeam.java @@ -229,9 +229,12 @@ public class FightTeam implements IFightTeam{ } private void allowFlying(boolean fly){ - for(FightPlayer p : players) - if(p.getPlayer() != null) + for(FightPlayer p : players){ + if(p.getPlayer() != null){ p.getPlayer().setAllowFlight(fly); + p.getPlayer().setFlying(fly); + } + } } public void pasteSchematic(){