Fixed #10116
This commit is contained in:
@@ -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. */
|
/** Called when the block is destroyed. The tile is still intact at this stage. */
|
||||||
public void onDestroyed(){
|
public void onDestroyed(){
|
||||||
|
if(sound != null){
|
||||||
|
sound.stop();
|
||||||
|
}
|
||||||
|
|
||||||
float explosiveness = block.baseExplosiveness;
|
float explosiveness = block.baseExplosiveness;
|
||||||
float flammability = 0f;
|
float flammability = 0f;
|
||||||
float power = 0f;
|
float power = 0f;
|
||||||
|
|||||||
@@ -53,6 +53,7 @@ public class BuildPayload implements Payload{
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void destroyed(){
|
public void destroyed(){
|
||||||
|
build.dead = true;
|
||||||
build.onDestroyed();
|
build.onDestroyed();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user