From 402d69312c1e2693e7df26068991571bffab9329 Mon Sep 17 00:00:00 2001 From: FatBoy-DOTC Date: Wed, 29 Jan 2025 20:09:42 -0600 Subject: [PATCH] use new regen calculations --- src/engine/objects/PlayerCharacter.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/engine/objects/PlayerCharacter.java b/src/engine/objects/PlayerCharacter.java index 829d3040..f4946b40 100644 --- a/src/engine/objects/PlayerCharacter.java +++ b/src/engine/objects/PlayerCharacter.java @@ -5743,7 +5743,7 @@ public class PlayerCharacter extends AbstractCharacter { }else{ consumption = 0.65f * secondsPassed; } - if(this.movementState.equals(MovementState.SWIMMING)) + if(!this.canBreathe) consumption = 1.5f * secondsPassed; else if(this.isFlying()) consumption = 2.0f * secondsPassed;