This commit is contained in:
Anuken
2022-02-14 00:36:17 -05:00
parent ff7e87b33d
commit a274fe3047
2 changed files with 20 additions and 6 deletions

View File

@@ -1779,10 +1779,6 @@ abstract class BuildingComp implements Posc, Teamc, Healthc, Buildingc, Timerc,
timeScale = 1f;
}
if(!allowUpdate()){
enabled = false;
}
//TODO unacceptable overhead?
if(!enabled && block.autoResetEnabled){
noSleep();
@@ -1793,6 +1789,10 @@ abstract class BuildingComp implements Posc, Teamc, Healthc, Buildingc, Timerc,
}
}
if(!allowUpdate()){
enabled = false;
}
//TODO separate system for sound? AudioSource, etc
if(!headless){
if(sound != null){