Fixed black blocks/units after quit / Fixed intense wave spawn lag

This commit is contained in:
Anuken
2019-06-12 18:07:19 -04:00
parent 73c48afc99
commit 18328320c1
14 changed files with 36 additions and 96 deletions
@@ -5,9 +5,9 @@ import io.anuke.mindustry.content.*;
import io.anuke.mindustry.type.ItemStack;
public class DefaultWaves{
private static Array<SpawnGroup> spawns;
private Array<SpawnGroup> spawns;
public static Array<SpawnGroup> get(){
public Array<SpawnGroup> get(){
if(spawns == null && UnitTypes.dagger != null){
spawns = Array.with(
new SpawnGroup(UnitTypes.dagger){{
+2 -2
View File
@@ -51,8 +51,8 @@ public class Rules{
public float launchWaveMultiplier = 2f;
/** Zone for saves that have them.*/
public Zone zone;
/** Spawn layout. Should be assigned on save load based on map or zone. */
public Array<SpawnGroup> spawns = DefaultWaves.get();
/** Spawn layout. */
public Array<SpawnGroup> spawns = new Array<>();
/** Determines if there should be limited respawns. */
public boolean limitedRespawns = false;
/** How many times player can respawn during one wave. */