From b34be1184eb228bd637483f9e825ccc3dedb6252 Mon Sep 17 00:00:00 2001 From: FatBoy-DOTC Date: Wed, 13 Sep 2023 19:53:13 -0500 Subject: [PATCH] null region assignment --- 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 6bed2b27..a2fbd429 100644 --- a/src/engine/objects/AbstractCharacter.java +++ b/src/engine/objects/AbstractCharacter.java @@ -986,7 +986,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); + Vector3fImmutable newValue = new Vector3fImmutable(value.x,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 {