forked from MagicBane/Server
null region assignment
This commit is contained in:
@@ -986,7 +986,7 @@ public abstract class AbstractCharacter extends AbstractWorldObject {
|
||||
Regions region = Regions.GetRegionForTeleport(value);
|
||||
if(region != null){
|
||||
this.region = region;
|
||||
Vector3fImmutable newValue = new Vector3fImmutable(value.x,region.lerpY(this),value.z);
|
||||
Vector3fImmutable newValue = new Vector3fImmutable(value.x,region.lerpY(this),value.z); //account for height offset of the current character region
|
||||
super.setLoc(newValue); // set the location in the world
|
||||
this.resetLastSetLocUpdate();
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user