Fixed player turning white before drowning on multiplayer

This commit is contained in:
Anuken
2018-11-08 16:30:56 -05:00
parent 94706460c0
commit 20032def7e
3 changed files with 3 additions and 3 deletions
@@ -323,7 +323,7 @@ public class Player extends Unit implements BuilderTrait, CarryTrait, ShooterTra
}
if(floor.isLiquid){
Draw.tint(Color.WHITE, floor.liquidColor, Mathf.clamp(drownTime, 0, 0.99f));
Draw.tint(Color.WHITE, floor.liquidColor, drownTime);
}else{
Draw.tint(Color.WHITE);
}
@@ -276,7 +276,7 @@ public abstract class Unit extends DestructibleEntity implements SaveTrait, Targ
drownTime = Mathf.clamp(drownTime);
if(drownTime >= 0.999f){
if(drownTime >= 0.999f && !Net.client()){
damage(health + 1);
}