forked from MagicBane/Server
update location
This commit is contained in:
@@ -31,6 +31,8 @@ public class MoveToPointHandler extends AbstractClientMsgHandler {
|
|||||||
if (pc == null)
|
if (pc == null)
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
|
pc.setIsCasting(false);
|
||||||
|
pc.setItemCasting(false);
|
||||||
MovementManager.movement(msg, pc);
|
MovementManager.movement(msg, pc);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -5153,10 +5153,19 @@ public class PlayerCharacter extends AbstractCharacter {
|
|||||||
|
|
||||||
try {
|
try {
|
||||||
|
|
||||||
if (!this.isAlive())
|
if (!this.isAlive()) {
|
||||||
|
if(this.isMoving())
|
||||||
|
this.stopMovement(this.getMovementLoc());
|
||||||
return;
|
return;
|
||||||
|
}
|
||||||
this.updateLocation();
|
//this.updateLocation();
|
||||||
|
if(this.isMoving()){
|
||||||
|
this.setLoc(this.getMovementLoc());
|
||||||
|
this.region = Regions.GetRegionForTeleport(this.getMovementLoc());
|
||||||
|
}else{
|
||||||
|
this.setLoc(this.loc);
|
||||||
|
this.region = Regions.GetRegionForTeleport(this.loc);
|
||||||
|
}
|
||||||
this.updateMovementState();
|
this.updateMovementState();
|
||||||
this.doRegen();
|
this.doRegen();
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user