null region assignment

This commit is contained in:
2023-09-13 19:53:13 -05:00
parent e23c5527da
commit b34be1184e
+1 -1
View File
@@ -986,7 +986,7 @@ public abstract class AbstractCharacter extends AbstractWorldObject {
Regions region = Regions.GetRegionForTeleport(value); Regions region = Regions.GetRegionForTeleport(value);
if(region != null){ if(region != null){
this.region = region; 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 super.setLoc(newValue); // set the location in the world
this.resetLastSetLocUpdate(); this.resetLastSetLocUpdate();
} else { } else {