Browse Source

stam ticks

lakebane-ai
FatBoy-DOTC 1 week ago
parent
commit
f21e8c130b
  1. 12
      src/engine/objects/PlayerCharacter.java

12
src/engine/objects/PlayerCharacter.java

@ -5905,16 +5905,10 @@ public class PlayerCharacter extends AbstractCharacter { @@ -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());
}
}

Loading…
Cancel
Save