mele sync update

This commit is contained in:
2025-03-18 19:11:25 -05:00
parent 9b8de72a6f
commit 6a54767a53
+6 -7
View File
@@ -5147,17 +5147,18 @@ public class PlayerCharacter extends AbstractCharacter {
if(!newSystem)
return;
try {
if (this.updateLock.writeLock().tryLock()) {
this.updateMovementState();
this.updateLocation();
try {
if (this.isAlive() && this.isActive && this.enteredWorld) {
if (!this.isAlive())
return;
this.updateLocation();
this.updateMovementState();
this.doRegen();
if (this.combatStats == null) {
this.combatStats = new PlayerCombatStats(this);
@@ -5168,8 +5169,6 @@ public class PlayerCharacter extends AbstractCharacter {
}
}
this.doRegen();
}
if (this.getStamina() < 10) {
if (this.getAltitude() > 0 || this.getDesiredAltitude() > 0) {