From f21e8c130b9f7b0aeea21120d9c58e92642f3683 Mon Sep 17 00:00:00 2001 From: FatBoy-DOTC Date: Tue, 11 Feb 2025 20:15:45 -0600 Subject: [PATCH] stam ticks --- src/engine/objects/PlayerCharacter.java | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/src/engine/objects/PlayerCharacter.java b/src/engine/objects/PlayerCharacter.java index 61278b7a..f2373614 100644 --- a/src/engine/objects/PlayerCharacter.java +++ b/src/engine/objects/PlayerCharacter.java @@ -5905,16 +5905,10 @@ public class PlayerCharacter extends AbstractCharacter { // Reset this char's frame time. this.lastUpdateTime = System.currentTimeMillis(); this.lastStamUpdateTime = System.currentTimeMillis(); - //this.updateMovementState(); - ///boolean updateHealth = this.regenerateHealth(); - //boolean updateMana = this.regenerateMana(); - //boolean updateStamina = this.regenerateStamina(); - //boolean consumeStamina = this.consumeStamina(); + if (this.timestamps.get("SyncClient") + 5000L < System.currentTimeMillis()) { - //if (updateHealth || updateMana || updateStamina || consumeStamina) { - this.syncClient(); - this.timestamps.put("SyncClient", System.currentTimeMillis()); - //} + this.syncClient(); + this.timestamps.put("SyncClient", System.currentTimeMillis()); } }