Crash fix

This commit is contained in:
Anuken 2022-01-08 11:13:24 -05:00
parent 5611a212c5
commit 39cb353b13

View File

@ -1668,7 +1668,9 @@ abstract class BuildingComp implements Posc, Teamc, Healthc, Buildingc, Timerc,
Events.fire(new BlockDestroyEvent(tile));
block.destroySound.at(tile);
onDestroyed();
tile.remove();
if(tile != emptyTile){
tile.remove();
}
remove();
afterDestroyed();
}