region assignment

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