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)) {
|
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
|
//Target is stunned or rooted. Don't move
|
||||||
this.stopMovement(newLoc);
|
this.stopMovement(newLoc);
|
||||||
this.region = AbstractWorldObject.GetRegionByWorldObject(this);
|
this.region = Regions.GetRegionForTeleport(newLoc);//AbstractWorldObject.GetRegionByWorldObject(this);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (newLoc.equals(this.getEndLoc())) {
|
if (newLoc.equals(this.getEndLoc())) {
|
||||||
this.stopMovement(newLoc);
|
this.stopMovement(newLoc);
|
||||||
this.region = AbstractWorldObject.GetRegionByWorldObject(this);
|
this.region = Regions.GetRegionForTeleport(newLoc);//AbstractWorldObject.GetRegionByWorldObject(this);
|
||||||
if (this.getDebug(1))
|
if (this.getDebug(1))
|
||||||
ChatManager.chatSystemInfo(this,
|
ChatManager.chatSystemInfo(this,
|
||||||
"Arrived at End location. " + this.getEndLoc());
|
"Arrived at End location. " + this.getEndLoc());
|
||||||
@@ -5555,7 +5555,7 @@ public class PlayerCharacter extends AbstractCharacter {
|
|||||||
//mhm.setOmitFromChat(0);
|
//mhm.setOmitFromChat(0);
|
||||||
Dispatch dispatch = Dispatch.borrow(this, modifyHealthMsg);
|
Dispatch dispatch = Dispatch.borrow(this, modifyHealthMsg);
|
||||||
DispatchMessage.dispatchMsgDispatch(dispatch, DispatchChannel.PRIMARY);
|
DispatchMessage.dispatchMsgDispatch(dispatch, DispatchChannel.PRIMARY);
|
||||||
|
this.setDirtyLoad(true);
|
||||||
}
|
}
|
||||||
|
|
||||||
public MovementState getMovementState() {
|
public MovementState getMovementState() {
|
||||||
|
|||||||
Reference in New Issue
Block a user