1
0
mirror of https://github.com/Anuken/Mindustry.git synced 2024-09-11 08:15:35 +03:00
This commit is contained in:
Anuken 2024-08-14 00:25:51 -04:00
parent c601918602
commit 7963923013
2 changed files with 5 additions and 0 deletions

View File

@ -1370,6 +1370,10 @@ abstract class BuildingComp implements Posc, Teamc, Healthc, Buildingc, Timerc,
/** Called when the block is destroyed. The tile is still intact at this stage. */
public void onDestroyed(){
if(sound != null){
sound.stop();
}
float explosiveness = block.baseExplosiveness;
float flammability = 0f;
float power = 0f;

View File

@ -53,6 +53,7 @@ public class BuildPayload implements Payload{
@Override
public void destroyed(){
build.dead = true;
build.onDestroyed();
}