region assignment

This commit is contained in:
2023-09-13 21:58:20 -05:00
parent a004c247ab
commit cdc1c2d776
@@ -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() {