|
|
@ -5147,28 +5147,27 @@ public class PlayerCharacter extends AbstractCharacter { |
|
|
|
if(!newSystem) |
|
|
|
if(!newSystem) |
|
|
|
return; |
|
|
|
return; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
try { |
|
|
|
try { |
|
|
|
|
|
|
|
|
|
|
|
if (this.updateLock.writeLock().tryLock()) { |
|
|
|
if (this.updateLock.writeLock().tryLock()) { |
|
|
|
|
|
|
|
|
|
|
|
this.updateMovementState(); |
|
|
|
|
|
|
|
this.updateLocation(); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
try { |
|
|
|
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); |
|
|
|
this.combatStats = new PlayerCombatStats(this); |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
try { |
|
|
|
try { |
|
|
|
this.combatStats.update(); |
|
|
|
this.combatStats.update(); |
|
|
|
}catch(Exception ignored){ |
|
|
|
} catch (Exception ignored) { |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
this.doRegen(); |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
if (this.getStamina() < 10) { |
|
|
|
if (this.getStamina() < 10) { |
|
|
|