Fixed player turning white before drowning on multiplayer
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user