Fixed black blocks/units after quit / Fixed intense wave spawn lag
This commit is contained in:
@@ -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){{
|
||||
|
||||
@@ -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. */
|
||||
|
||||
Reference in New Issue
Block a user