From 200318ddcfc0db02c3e7c5e054e09ef87a01d85a Mon Sep 17 00:00:00 2001 From: FatBoy-DOTC Date: Wed, 13 Sep 2023 20:48:02 -0500 Subject: [PATCH] add region height to world height in setLoc --- src/engine/objects/AbstractCharacter.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/engine/objects/AbstractCharacter.java b/src/engine/objects/AbstractCharacter.java index 31b77ca5..d5da6a61 100644 --- a/src/engine/objects/AbstractCharacter.java +++ b/src/engine/objects/AbstractCharacter.java @@ -987,7 +987,7 @@ public abstract class AbstractCharacter extends AbstractWorldObject { Regions region = Regions.GetRegionForTeleport(value); if(region != null){ this.region = region; - Vector3fImmutable newValue = new Vector3fImmutable(value.x,region.lerpY(this),value.z); //account for height offset of the current character region + Vector3fImmutable newValue = new Vector3fImmutable(value.x,value.y + region.lerpY(this),value.z); //account for height offset of the current character region super.setLoc(newValue); // set the location in the world this.resetLastSetLocUpdate(); } else {