From 1e2b593152d412a8198a31e56a242d35aeb2c1fb Mon Sep 17 00:00:00 2001 From: Anuken Date: Tue, 17 Nov 2020 10:20:57 -0500 Subject: [PATCH] Added more validaiton for sector capture events --- core/src/mindustry/core/Logic.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/mindustry/core/Logic.java b/core/src/mindustry/core/Logic.java index c38bec0afa..2a335c02e5 100644 --- a/core/src/mindustry/core/Logic.java +++ b/core/src/mindustry/core/Logic.java @@ -123,7 +123,7 @@ public class Logic implements ApplicationListener{ }); Events.on(SectorCaptureEvent.class, e -> { - if(!net.client() && e.sector == state.getSector()){ + if(!net.client() && e.sector == state.getSector() && e.sector.isBeingPlayed()){ for(Tile tile : world.tiles){ //convert all blocks to neutral, randomly killing them if(tile.isCenter() && tile.build != null && tile.build.team == state.rules.waveTeam){