properly sync client for regen
This commit is contained in:
@@ -5070,6 +5070,7 @@ public class PlayerCharacter extends AbstractCharacter {
|
|||||||
this.combatStats.update();
|
this.combatStats.update();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//this.doRegen();
|
||||||
this.doRegen();
|
this.doRegen();
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -5626,7 +5627,7 @@ public class PlayerCharacter extends AbstractCharacter {
|
|||||||
boolean updateMana = this.regenerateMana();
|
boolean updateMana = this.regenerateMana();
|
||||||
boolean updateStamina = this.regenerateStamina();
|
boolean updateStamina = this.regenerateStamina();
|
||||||
boolean consumeStamina = this.consumeStamina();
|
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)
|
if (updateHealth || updateMana || updateStamina || consumeStamina)
|
||||||
this.syncClient();
|
this.syncClient();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user