Rework of class interface.

This commit is contained in:
2023-09-11 11:01:09 -04:00
parent 7dc970ff53
commit 7bf31f9a47
4 changed files with 14 additions and 164 deletions
+1 -1
View File
@@ -502,7 +502,7 @@ public abstract class AbstractWorldObject extends AbstractGameObject {
return;
this.lastLoc = new Vector3fImmutable(this.loc);
this.loc = loc;
this.loc = this.loc.setY(HeightMap.getWorldHeight(this) + this.getAltitude());
this.loc = this.loc.setY(HeightMap.getWorldHeight(this.getLoc()) + this.getAltitude());
//lets not add mob to world grid if he is currently despawned.
if (this.getObjectType().equals(GameObjectType.Mob) && ((Mob) this).despawned)