diff --git a/src/engine/objects/PlayerCharacter.java b/src/engine/objects/PlayerCharacter.java index d3f75d90..fddb3b11 100644 --- a/src/engine/objects/PlayerCharacter.java +++ b/src/engine/objects/PlayerCharacter.java @@ -5147,28 +5147,27 @@ 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; - if (this.combatStats == null) { + this.updateLocation(); + this.updateMovementState(); + this.doRegen(); + + if (this.combatStats == null) { this.combatStats = new PlayerCombatStats(this); } else { - try { - this.combatStats.update(); - }catch(Exception ignored){ + try { + this.combatStats.update(); + } catch (Exception ignored) { - } } - this.doRegen(); } if (this.getStamina() < 10) {