setLoc now handles region assignment

This commit is contained in:
FatBoy committed 2023-09-13 19:51:39 -05:00
1 parent f5d83aa259
commit 847e62dd27
4 files changed
+10 -12

No files matched your search

-3
View File
@@ -4888,12 +4888,10 @@ public class PlayerCharacter extends AbstractCharacter {
if (this.isAlive() == false || this.getBonuses().getBool(ModType.Stunned, SourceType.None) || this.getBonuses().getBool(ModType.CannotMove, SourceType.None)) {
//Target is stunned or rooted. Don't move
this.stopMovement(newLoc);
this.region = AbstractWorldObject.GetRegionByWorldObject(this);
return;
}
if (newLoc.equals(this.getEndLoc())) {
this.stopMovement(newLoc);
this.region = AbstractWorldObject.GetRegionByWorldObject(this);
if (this.getDebug(1))
ChatManager.chatSystemInfo(this,
"Arrived at End location. " + this.getEndLoc());
@@ -4902,7 +4900,6 @@ public class PlayerCharacter extends AbstractCharacter {
}
setLoc(newLoc);
this.region = AbstractWorldObject.GetRegionByWorldObject(this);
if (this.getDebug(1))
ChatManager.chatSystemInfo(this,