mirror of
https://github.com/Anuken/Mindustry.git
synced 2025-02-08 01:43:59 +07:00
Fixed #10116
This commit is contained in:
parent
c601918602
commit
7963923013
@ -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;
|
||||
|
@ -53,6 +53,7 @@ public class BuildPayload implements Payload{
|
||||
|
||||
@Override
|
||||
public void destroyed(){
|
||||
build.dead = true;
|
||||
build.onDestroyed();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user