mob desync issue

This commit is contained in:
2024-04-24 14:47:55 -05:00
parent baf28519c2
commit f865f94806
3 changed files with 22 additions and 17 deletions
+2 -4
View File
@@ -63,10 +63,8 @@ public class Corpse extends AbstractWorldObject {
this.inBuilding = belongsTo.getInBuilding();
this.inFloorID = belongsTo.getInFloorID();
this.inBuildingID = belongsTo.getInBuildingID();
if(belongsTo.isMoving())
this.setLoc(belongsTo.getMovementLoc());
else
this.setLoc(belongsTo.getLoc());
belongsTo.stopMovement(belongsTo.getMovementLoc());
this.setLoc(belongsTo.getMovementLoc());
} else {
Logger.error("No player passed in for corpse");
this.firstName = "";
+3
View File
@@ -858,6 +858,9 @@ public class Mob extends AbstractIntelligenceAgent {
public void updateLocation() {
if(true)
return;
if (!this.isMoving())
return;