update location

This commit is contained in:
2025-03-18 19:44:55 -05:00
parent 165e721eb8
commit dbe748bcdd
2 changed files with 14 additions and 3 deletions
+12 -3
View File
@@ -5153,10 +5153,19 @@ public class PlayerCharacter extends AbstractCharacter {
try {
if (!this.isAlive())
if (!this.isAlive()) {
if(this.isMoving())
this.stopMovement(this.getMovementLoc());
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.doRegen();