|
|
@ -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()); |
|
|
|
//}
|
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|