forked from MagicBane/Server
player update bug
This commit is contained in:
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user