forked from MagicBane/Server
order of update operations
This commit is contained in:
@@ -5144,9 +5144,6 @@ public class PlayerCharacter extends AbstractCharacter {
|
|||||||
@Override
|
@Override
|
||||||
public void update(Boolean newSystem) {
|
public void update(Boolean newSystem) {
|
||||||
|
|
||||||
this.updateLocation();
|
|
||||||
this.updateMovementState();
|
|
||||||
|
|
||||||
if(!newSystem)
|
if(!newSystem)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
@@ -5155,6 +5152,10 @@ public class PlayerCharacter extends AbstractCharacter {
|
|||||||
|
|
||||||
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() && this.isActive && this.enteredWorld) {
|
||||||
|
|||||||
Reference in New Issue
Block a user