From 9c62d49eb4448cd6805bd898a6d4325b629a5d7b Mon Sep 17 00:00:00 2001 From: Anuken Date: Sun, 31 Oct 2021 14:10:18 -0400 Subject: [PATCH] Clear team blocks on derelict --- core/src/mindustry/game/Teams.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/core/src/mindustry/game/Teams.java b/core/src/mindustry/game/Teams.java index f6f284ab35..9425c669fb 100644 --- a/core/src/mindustry/game/Teams.java +++ b/core/src/mindustry/game/Teams.java @@ -270,6 +270,9 @@ public class Teams{ buildings.getObjects(builds); } + //no remaining blocks, cease building if applicable + blocks.clear(); + //convert all team tiles to neutral, randomly killing them for(var b : builds){ //TODO this may cause a lot of packet spam, optimize?