From 258945a45a94589a103e1af62515242f04cb7af6 Mon Sep 17 00:00:00 2001 From: Anuken Date: Wed, 12 Feb 2020 12:47:02 -0500 Subject: [PATCH] Team validation --- core/src/mindustry/game/Teams.java | 1 + 1 file changed, 1 insertion(+) diff --git a/core/src/mindustry/game/Teams.java b/core/src/mindustry/game/Teams.java index 813df73e21..7a972779b7 100644 --- a/core/src/mindustry/game/Teams.java +++ b/core/src/mindustry/game/Teams.java @@ -98,6 +98,7 @@ public class Teams{ /** Do not modify. */ public Array getActive(){ + active.removeAll(t -> !t.active()); return active; }