diff --git a/core/src/mindustry/game/Teams.java b/core/src/mindustry/game/Teams.java index d5afac1217..610b32de86 100644 --- a/core/src/mindustry/game/Teams.java +++ b/core/src/mindustry/game/Teams.java @@ -123,7 +123,6 @@ public class Teams{ public void unregisterCore(CoreBuild entity){ TeamData data = get(entity.team); - //remove core data.cores.remove(entity); //unregister in active list if(!data.active()){ @@ -271,7 +270,7 @@ public class Teams{ if(type == null) return; unitCount = Math.max(amount + unitCount, 0); if(typeCounts == null || typeCounts.length <= type.id){ - typeCounts = new int[Vars.content.units().size]; + typeCounts = new int[Vars.content.units().size]; } typeCounts[type.id] = Math.max(amount + typeCounts[type.id], 0); }