From 47f39fd96330948c7a5dc68ac15ee8b7a15f940a Mon Sep 17 00:00:00 2001 From: FatBoy-DOTC Date: Sun, 16 Mar 2025 19:40:28 -0500 Subject: [PATCH] player update bug --- src/engine/objects/PlayerCharacter.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/engine/objects/PlayerCharacter.java b/src/engine/objects/PlayerCharacter.java index 2b25e3c8..2389ee68 100644 --- a/src/engine/objects/PlayerCharacter.java +++ b/src/engine/objects/PlayerCharacter.java @@ -5362,12 +5362,12 @@ 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); + this.region = Regions.GetRegionForTeleport(newLoc);//AbstractWorldObject.GetRegionByWorldObject(this); return; } if (newLoc.equals(this.getEndLoc())) { this.stopMovement(newLoc); - this.region = AbstractWorldObject.GetRegionByWorldObject(this); + this.region = Regions.GetRegionForTeleport(newLoc);//AbstractWorldObject.GetRegionByWorldObject(this); if (this.getDebug(1)) ChatManager.chatSystemInfo(this, "Arrived at End location. " + this.getEndLoc()); @@ -5555,7 +5555,7 @@ public class PlayerCharacter extends AbstractCharacter { //mhm.setOmitFromChat(0); Dispatch dispatch = Dispatch.borrow(this, modifyHealthMsg); DispatchMessage.dispatchMsgDispatch(dispatch, DispatchChannel.PRIMARY); - + this.setDirtyLoad(true); } public MovementState getMovementState() {