Browse Source

stam ticks

lakebane-ai
FatBoy-DOTC 2 weeks ago
parent
commit
f21e8c130b
  1. 8
      src/engine/objects/PlayerCharacter.java

8
src/engine/objects/PlayerCharacter.java

@ -5905,16 +5905,10 @@ public class PlayerCharacter extends AbstractCharacter {
// Reset this char's frame time. // Reset this char's frame time.
this.lastUpdateTime = System.currentTimeMillis(); this.lastUpdateTime = System.currentTimeMillis();
this.lastStamUpdateTime = 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 (this.timestamps.get("SyncClient") + 5000L < System.currentTimeMillis()) {
//if (updateHealth || updateMana || updateStamina || consumeStamina) {
this.syncClient(); this.syncClient();
this.timestamps.put("SyncClient", System.currentTimeMillis()); this.timestamps.put("SyncClient", System.currentTimeMillis());
//}
} }
} }

Loading…
Cancel
Save