hotfix for location sync
This commit is contained in:
@@ -5144,15 +5144,16 @@ public class PlayerCharacter extends AbstractCharacter {
|
|||||||
@Override
|
@Override
|
||||||
public void update(Boolean newSystem) {
|
public void update(Boolean newSystem) {
|
||||||
|
|
||||||
if(!newSystem)
|
if(!newSystem) {
|
||||||
|
this.updateLocation();
|
||||||
|
this.updateMovementState();
|
||||||
return;
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
try {
|
try {
|
||||||
|
|
||||||
if (this.updateLock.writeLock().tryLock()) {
|
if (this.updateLock.writeLock().tryLock()) {
|
||||||
|
|
||||||
this.updateMovementState();
|
|
||||||
this.updateLocation();
|
|
||||||
|
|
||||||
if(!this.timestamps.containsKey("SetDirty")){
|
if(!this.timestamps.containsKey("SetDirty")){
|
||||||
this.timestamps.put("SetDirty", System.currentTimeMillis());
|
this.timestamps.put("SetDirty", System.currentTimeMillis());
|
||||||
|
|||||||
Reference in New Issue
Block a user