player update sync
This commit is contained in:
@@ -4845,8 +4845,8 @@ public class PlayerCharacter extends AbstractCharacter {
|
||||
@Override
|
||||
public void update(Boolean newSystem) {
|
||||
|
||||
if(!newSystem)
|
||||
return;
|
||||
//if(!newSystem)
|
||||
// return;
|
||||
|
||||
if (this.updateLock.writeLock().tryLock()) {
|
||||
try {
|
||||
@@ -4858,19 +4858,19 @@ public class PlayerCharacter extends AbstractCharacter {
|
||||
forceRespawn(this);
|
||||
return;
|
||||
}
|
||||
updateLocation();
|
||||
updateMovementState();
|
||||
updateRegen();
|
||||
this.updateLocation();
|
||||
this.updateMovementState();
|
||||
this.updateRegen();
|
||||
|
||||
if (this.getStamina() < 10) {
|
||||
if (this.getAltitude() > 0 || this.getDesiredAltitude() > 0) {
|
||||
PlayerCharacter.GroundPlayer(this);
|
||||
updateRegen();
|
||||
this.updateRegen();
|
||||
}
|
||||
}
|
||||
|
||||
RealmMap.updateRealm(this);
|
||||
updateBlessingMessage();
|
||||
this.updateBlessingMessage();
|
||||
|
||||
this.safeZone = this.isInSafeZone();
|
||||
if(!this.timestamps.containsKey("nextBoxCheck"))
|
||||
|
||||
@@ -517,8 +517,8 @@ public class WorldServer {
|
||||
Logger.info("Starting Bane Thread");
|
||||
BaneThread.startBaneThread();
|
||||
|
||||
Logger.info("Starting Player Update Thread");
|
||||
UpdateThread.startUpdateThread();
|
||||
//Logger.info("Starting Player Update Thread");
|
||||
//UpdateThread.startUpdateThread();
|
||||
|
||||
|
||||
printThreads();
|
||||
|
||||
Reference in New Issue
Block a user