From db931bace2d1e2202b242de04a3f3d32b6651bc4 Mon Sep 17 00:00:00 2001 From: Anuken Date: Sun, 28 Mar 2021 10:56:19 -0400 Subject: [PATCH] Cleanup --- core/src/mindustry/game/Teams.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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); }