mirror of
https://github.com/Anuken/Mindustry.git
synced 2026-10-03 03:31:28 +03:00
Fixed #12549
This commit is contained in:
@@ -2176,8 +2176,8 @@ abstract class BuildingComp implements Posc, Teamc, Healthc, Buildingc, Timerc,
|
||||
switch(prop){
|
||||
case health -> {
|
||||
health = (float)Mathf.clamp(value, 0, maxHealth);
|
||||
if(health <= 0f && !dead()){
|
||||
Call.buildDestroyed(self());
|
||||
if(health <= 0f){
|
||||
if(!dead) Call.buildDestroyed(self());
|
||||
}else{
|
||||
healthChanged();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user