forked from MagicBane/Server
region assignment
This commit is contained in:
@@ -985,8 +985,14 @@ public abstract class AbstractCharacter extends AbstractWorldObject {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public final void setLoc(final Vector3fImmutable value) {
|
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
|
super.setLoc(value); // set the location in the world
|
||||||
this.resetLastSetLocUpdate();
|
this.resetLastSetLocUpdate();
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public Vector3fImmutable getMovementLoc() {
|
public Vector3fImmutable getMovementLoc() {
|
||||||
|
|||||||
Reference in New Issue
Block a user