Play core destroy sound even when core capture is enabled

This commit is contained in:
Anuken
2025-12-23 21:52:50 -05:00
parent 383b793576
commit 60eb3afb8d

View File

@@ -622,6 +622,11 @@ public class CoreBlock extends StorageBlock{
//just create an explosion, no fire. this prevents immediate recapture //just create an explosion, no fire. this prevents immediate recapture
Damage.dynamicExplosion(x, y, 0, 0, 0, tilesize * block.size / 2f, state.rules.damageExplosions); Damage.dynamicExplosion(x, y, 0, 0, 0, tilesize * block.size / 2f, state.rules.damageExplosions);
Fx.commandSend.at(x, y, 140f); Fx.commandSend.at(x, y, 140f);
//make sure the sound still plays
if(!headless){
playDestroySound();
}
}else{ }else{
super.onDestroyed(); super.onDestroyed();
} }