player update handled in new thread

This commit is contained in:
2025-01-01 10:31:46 -06:00
parent df7a106237
commit 1098265145
13 changed files with 95 additions and 35 deletions
+3 -3
View File
@@ -270,7 +270,7 @@ public abstract class AbstractWorldObject extends AbstractGameObject {
this.effects.remove(name);
if (this.getObjectType().equals(GameObjectType.PlayerCharacter))
if (name.equals("Flight")) {
((PlayerCharacter) this).update();
((PlayerCharacter) this).update(false);
PlayerCharacter.GroundPlayer((PlayerCharacter) this);
}
}
@@ -385,7 +385,7 @@ public abstract class AbstractWorldObject extends AbstractGameObject {
if (source.equals("Flight")) {
//ground player
if (this.getObjectType().equals(GameObjectType.PlayerCharacter)) {
((PlayerCharacter) this).update();
((PlayerCharacter) this).update(false);
PlayerCharacter.GroundPlayer((PlayerCharacter) this);
}
}
@@ -414,7 +414,7 @@ public abstract class AbstractWorldObject extends AbstractGameObject {
if (source.equals("Flight")) {
//ground player
if (this.getObjectType().equals(GameObjectType.PlayerCharacter)) {
((PlayerCharacter) this).update();
((PlayerCharacter) this).update(false);
PlayerCharacter.GroundPlayer((PlayerCharacter) this);
}
}