SteamWar/FightSystem
Archiviert
13
1

Fix spectators below (M)WGs #278

Manuell gemergt
Lixfel hat 1 Commits von fixBelowWGs nach master 2021-05-24 09:57:49 +02:00 zusammengeführt
Nur Änderungen aus Commit 9cef84f7b3 werden angezeigt - Alle Commits anzeigen

Datei anzeigen

@ -51,8 +51,11 @@ public class ArenaBorder implements Listener {
} }
FightTeam team = Fight.getPlayerTeam(player); 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; return;
}
if(to.getY() <= Config.ArenaRegion.getMinY()) { if(to.getY() <= Config.ArenaRegion.getMinY()) {
if(FightState.infight()) if(FightState.infight())