mirror of
https://github.com/Anuken/Mindustry.git
synced 2024-09-11 08:15:35 +03: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