|
|
@ -502,7 +502,13 @@ public abstract class AbstractWorldObject extends AbstractGameObject { |
|
|
|
return; |
|
|
|
return; |
|
|
|
this.lastLoc = new Vector3fImmutable(this.loc); |
|
|
|
this.lastLoc = new Vector3fImmutable(this.loc); |
|
|
|
this.loc = loc; |
|
|
|
this.loc = loc; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if(this instanceof AbstractCharacter && this.region != null){ |
|
|
|
|
|
|
|
this.loc = this.loc.setY(this.region.lerpY(this) + this.getAltitude()); |
|
|
|
|
|
|
|
} else{ |
|
|
|
this.loc = this.loc.setY(HeightMap.getWorldHeight(this.getLoc()) + 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.
|
|
|
|
//lets not add mob to world grid if he is currently despawned.
|
|
|
|
if (this.getObjectType().equals(GameObjectType.Mob) && ((Mob) this).despawned) |
|
|
|
if (this.getObjectType().equals(GameObjectType.Mob) && ((Mob) this).despawned) |
|
|
|