Disabled spawner radius/warning when waves off

This commit is contained in:
Anuken
2020-10-16 11:27:17 -04:00
parent 2f54edf34f
commit f5decdaa1c
4 changed files with 23 additions and 6 deletions

View File

@@ -48,7 +48,7 @@ public class WaveSpawner{
/** @return true if the player is near a ground spawn point. */
public boolean playerNear(){
return !player.dead() && spawns.contains(g -> Mathf.dst(g.x * tilesize, g.y * tilesize, player.x, player.y) < state.rules.dropZoneRadius && player.team() != state.rules.waveTeam);
return state.rules.waves && !player.dead() && spawns.contains(g -> Mathf.dst(g.x * tilesize, g.y * tilesize, player.x, player.y) < state.rules.dropZoneRadius && player.team() != state.rules.waveTeam);
}
public void spawnEnemies(){