From baf28519c293a27f9a67106b3cc2cf5e4aa947ea Mon Sep 17 00:00:00 2001 From: FatBoy-DOTC Date: Tue, 23 Apr 2024 21:16:00 -0500 Subject: [PATCH] mine fix dor delayed closing time --- src/engine/objects/Corpse.java | 5 ++++- src/engine/workthreads/MineThread.java | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/src/engine/objects/Corpse.java b/src/engine/objects/Corpse.java index fa7970ad..ae661b3a 100644 --- a/src/engine/objects/Corpse.java +++ b/src/engine/objects/Corpse.java @@ -63,7 +63,10 @@ public class Corpse extends AbstractWorldObject { this.inBuilding = belongsTo.getInBuilding(); this.inFloorID = belongsTo.getInFloorID(); this.inBuildingID = belongsTo.getInBuildingID(); - this.setLoc(belongsTo.getLoc()); + if(belongsTo.isMoving()) + this.setLoc(belongsTo.getMovementLoc()); + else + this.setLoc(belongsTo.getLoc()); } else { Logger.error("No player passed in for corpse"); this.firstName = ""; diff --git a/src/engine/workthreads/MineThread.java b/src/engine/workthreads/MineThread.java index e9611112..6f99a55e 100644 --- a/src/engine/workthreads/MineThread.java +++ b/src/engine/workthreads/MineThread.java @@ -58,7 +58,7 @@ public class MineThread implements Runnable { mineWindowClose(mine); //mine was knocked down and was claimed, close window } } - nextPulse = LocalDateTime.now().plusMinutes(30); + nextPulse = nextPulse.plusMinutes(30); } } }