calculate combat stats spam fix

This commit is contained in:
2025-01-30 19:49:37 -06:00
parent c5f678ea0e
commit f4267c3c92
2 changed files with 21 additions and 19 deletions
+9 -7
View File
@@ -5060,14 +5060,16 @@ public class PlayerCharacter extends AbstractCharacter {
return;
}
this.updateLocation();
this.updateMovementState();
this.doRegen();
if (this.combatStats == null) {
this.combatStats = new PlayerCombatStats(this);
}else{
this.combatStats.update();
}
if(this.isAlive() && this.isActive && this.enteredWorld) {
this.updateMovementState();
this.doRegen();
if (this.combatStats == null) {
this.combatStats = new PlayerCombatStats(this);
} else {
this.combatStats.update();
}
}
if (this.getStamina() < 10) {
if (this.getAltitude() > 0 || this.getDesiredAltitude() > 0) {