Removed "sector attacked" message

This commit is contained in:
Anuken
2020-10-11 14:54:05 -04:00
parent 2f6f205dc7
commit ee50995dde
4 changed files with 22 additions and 17 deletions

View File

@@ -310,6 +310,22 @@ public class CoreBlock extends StorageBlock{
}
}
@Override
public void onDestroyed(){
super.onDestroyed();
if(state.isCampaign() && team == state.rules.waveTeam){
//do not recache
world.setGenerating(true);
tile.setOverlay(Blocks.spawn);
world.setGenerating(false);
if(!spawner.getSpawns().contains(tile)){
spawner.getSpawns().add(tile);
}
spawner.doShockwave(x, y);
}
}
@Override
public void placed(){