From cdc1c2d7769f4423260dd02ec1066d35b8485f8c Mon Sep 17 00:00:00 2001 From: FatBoy-DOTC Date: Wed, 13 Sep 2023 21:58:20 -0500 Subject: [PATCH] region assignment --- src/engine/objects/AbstractCharacter.java | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/engine/objects/AbstractCharacter.java b/src/engine/objects/AbstractCharacter.java index d7a88aef..c87438e4 100644 --- a/src/engine/objects/AbstractCharacter.java +++ b/src/engine/objects/AbstractCharacter.java @@ -985,8 +985,14 @@ public abstract class AbstractCharacter extends AbstractWorldObject { @Override public final void setLoc(final Vector3fImmutable value) { + Regions region = Regions.GetRegionForTeleport(value); + if(region != null){ + this.region = region; + } + super.setLoc(value); // set the location in the world this.resetLastSetLocUpdate(); + } public Vector3fImmutable getMovementLoc() {