mob desync issue

This commit is contained in:
FatBoy committed 2024-04-24 14:47:55 -05:00
1 parent baf28519c2
commit f865f94806
3 files changed
+22 -17

No files matched your search

+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 = "";