Browse Source

hotfix for location sync

lakebane
FatBoy-DOTC 3 weeks ago
parent
commit
b7e4f309e8
  1. 7
      src/engine/objects/PlayerCharacter.java

7
src/engine/objects/PlayerCharacter.java

@ -5144,15 +5144,16 @@ public class PlayerCharacter extends AbstractCharacter { @@ -5144,15 +5144,16 @@ public class PlayerCharacter extends AbstractCharacter {
@Override
public void update(Boolean newSystem) {
if(!newSystem)
if(!newSystem) {
this.updateLocation();
this.updateMovementState();
return;
}
try {
if (this.updateLock.writeLock().tryLock()) {
this.updateMovementState();
this.updateLocation();
if(!this.timestamps.containsKey("SetDirty")){
this.timestamps.put("SetDirty", System.currentTimeMillis());

Loading…
Cancel
Save