Browse Source

region assignment

feature-region-set
FatBoy-DOTC 1 year ago
parent
commit
cdc1c2d776
  1. 6
      src/engine/objects/AbstractCharacter.java

6
src/engine/objects/AbstractCharacter.java

@ -985,8 +985,14 @@ public abstract class AbstractCharacter extends AbstractWorldObject { @@ -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() {

Loading…
Cancel
Save