Fix loop sound persisting after the payload carrier is removed. (#8034)
* Properly remove units and blocks in the case that the carrier dies * added = false --------- Co-authored-by: Anuken <arnukren@gmail.com>
This commit is contained in:
@@ -2089,6 +2089,10 @@ abstract class BuildingComp implements Posc, Teamc, Healthc, Buildingc, Timerc,
|
||||
|
||||
@Override
|
||||
public void remove(){
|
||||
stopSound();
|
||||
}
|
||||
|
||||
public void stopSound(){
|
||||
if(sound != null){
|
||||
sound.stop();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user