Fixed #10410
This commit is contained in:
@@ -45,6 +45,8 @@ abstract class ShieldComp implements Healthc, Posc{
|
||||
protected void rawDamage(float amount){
|
||||
boolean hadShields = shield > 0.0001f;
|
||||
|
||||
if(Float.isNaN(health)) health = 0f;
|
||||
|
||||
if(hadShields){
|
||||
shieldAlpha = 1f;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user