From 7911a22cc91b51f1995dda0c95b27ef06c9f8e15 Mon Sep 17 00:00:00 2001 From: Anuken Date: Mon, 29 May 2023 10:23:32 -0400 Subject: [PATCH] Fixed #8649 --- core/src/mindustry/ai/BlockIndexer.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/src/mindustry/ai/BlockIndexer.java b/core/src/mindustry/ai/BlockIndexer.java index 705d2acfd5..0cae6ca790 100644 --- a/core/src/mindustry/ai/BlockIndexer.java +++ b/core/src/mindustry/ai/BlockIndexer.java @@ -286,7 +286,7 @@ public class BlockIndexer{ //when team data is not initialized, scan through every team. this is terrible if(data.isEmpty()){ for(Team enemy : Team.all){ - if(enemy == team) continue; + if(enemy == team || (enemy == Team.derelict && !state.rules.coreCapture)) continue; var set = getFlagged(enemy)[type.ordinal()]; if(set != null){ breturnArray.addAll(set); @@ -295,7 +295,7 @@ public class BlockIndexer{ }else{ for(int i = 0; i < data.size; i++){ Team enemy = data.items[i].team; - if(enemy == team) continue; + if(enemy == team || (enemy == Team.derelict && !state.rules.coreCapture)) continue; var set = getFlagged(enemy)[type.ordinal()]; if(set != null){ breturnArray.addAll(set);