Don't create unit spawns on campaign enemy core death when a spawn already exists

This commit is contained in:
Anuken
2025-04-10 20:26:24 -04:00
parent ab6999b847
commit 92517a470a

View File

@@ -600,7 +600,7 @@ public class CoreBlock extends StorageBlock{
}
//add a spawn to the map for future reference - waves should be disabled, so it shouldn't matter
if(state.isCampaign() && team == state.rules.waveTeam && team.cores().size <= 1 && state.rules.sector.planet.enemyCoreSpawnReplace){
if(state.isCampaign() && team == state.rules.waveTeam && team.cores().size <= 1 && spawner.getSpawns().size == 0 && state.rules.sector.planet.enemyCoreSpawnReplace){
//do not recache
tile.setOverlayQuiet(Blocks.spawn);