SteamWar/FightSystem
Archiviert
13
1

Fix spectators below (M)WGs

Signed-off-by: Lixfel <agga-games@gmx.de>
Dieser Commit ist enthalten in:
Lixfel 2021-05-24 08:54:25 +02:00
Ursprung 5ed30e9123
Commit 9cef84f7b3

Datei anzeigen

@ -51,8 +51,11 @@ public class ArenaBorder implements Listener {
}
FightTeam team = Fight.getPlayerTeam(player);
if(team == null || player.getGameMode() == GameMode.SPECTATOR)
if(team == null || player.getGameMode() == GameMode.SPECTATOR){
if(to.getY() <= Config.ArenaRegion.getMinY())
reset(event);
return;
}
if(to.getY() <= Config.ArenaRegion.getMinY()) {
if(FightState.infight())