|
|
@ -4845,8 +4845,8 @@ public class PlayerCharacter extends AbstractCharacter { |
|
|
|
@Override |
|
|
|
@Override |
|
|
|
public void update(Boolean newSystem) { |
|
|
|
public void update(Boolean newSystem) { |
|
|
|
|
|
|
|
|
|
|
|
if(!newSystem) |
|
|
|
//if(!newSystem)
|
|
|
|
return; |
|
|
|
// return;
|
|
|
|
|
|
|
|
|
|
|
|
if (this.updateLock.writeLock().tryLock()) { |
|
|
|
if (this.updateLock.writeLock().tryLock()) { |
|
|
|
try { |
|
|
|
try { |
|
|
@ -4858,19 +4858,19 @@ public class PlayerCharacter extends AbstractCharacter { |
|
|
|
forceRespawn(this); |
|
|
|
forceRespawn(this); |
|
|
|
return; |
|
|
|
return; |
|
|
|
} |
|
|
|
} |
|
|
|
updateLocation(); |
|
|
|
this.updateLocation(); |
|
|
|
updateMovementState(); |
|
|
|
this.updateMovementState(); |
|
|
|
updateRegen(); |
|
|
|
this.updateRegen(); |
|
|
|
|
|
|
|
|
|
|
|
if (this.getStamina() < 10) { |
|
|
|
if (this.getStamina() < 10) { |
|
|
|
if (this.getAltitude() > 0 || this.getDesiredAltitude() > 0) { |
|
|
|
if (this.getAltitude() > 0 || this.getDesiredAltitude() > 0) { |
|
|
|
PlayerCharacter.GroundPlayer(this); |
|
|
|
PlayerCharacter.GroundPlayer(this); |
|
|
|
updateRegen(); |
|
|
|
this.updateRegen(); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
RealmMap.updateRealm(this); |
|
|
|
RealmMap.updateRealm(this); |
|
|
|
updateBlessingMessage(); |
|
|
|
this.updateBlessingMessage(); |
|
|
|
|
|
|
|
|
|
|
|
this.safeZone = this.isInSafeZone(); |
|
|
|
this.safeZone = this.isInSafeZone(); |
|
|
|
if(!this.timestamps.containsKey("nextBoxCheck")) |
|
|
|
if(!this.timestamps.containsKey("nextBoxCheck")) |
|
|
|