SteamWar/FightSystem
Archiviert
13
1

Merge pull request 'Fix spectators below (M)WGs' (#278) from fixBelowWGs into master

Reviewed-on: #278
Reviewed-by: Chaoscaot <chaoscaot444@gmail.com>
Dieser Commit ist enthalten in:
Lixfel 2021-05-24 09:57:47 +02:00
Commit 9511237b3a

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())