From a004c247ab95e3ced6d4e357dc17d3a9a85c9183 Mon Sep 17 00:00:00 2001 From: FatBoy-DOTC Date: Wed, 13 Sep 2023 21:57:17 -0500 Subject: [PATCH] abstract character cleanup --- src/engine/objects/AbstractCharacter.java | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-) diff --git a/src/engine/objects/AbstractCharacter.java b/src/engine/objects/AbstractCharacter.java index f74f1a66..d7a88aef 100644 --- a/src/engine/objects/AbstractCharacter.java +++ b/src/engine/objects/AbstractCharacter.java @@ -985,18 +985,8 @@ public abstract class AbstractCharacter extends AbstractWorldObject { @Override public final void setLoc(final Vector3fImmutable value) { - Regions region = Regions.GetRegionForTeleport(value); - if(region != null){ - float regionHeight = region.lerpY(this); - this.region = region; - Vector3fImmutable newValue = new Vector3fImmutable(value.x,regionHeight,value.z); //account for height offset of the current character region - super.setLoc(newValue); // set the location in the world - this.resetLastSetLocUpdate(); - } else { - this.region = null; - super.setLoc(value); // set the location in the world - this.resetLastSetLocUpdate(); - } + super.setLoc(value); // set the location in the world + this.resetLastSetLocUpdate(); } public Vector3fImmutable getMovementLoc() {