Browse Source

mine fix dor delayed closing time

lakebane-master
FatBoy-DOTC 7 months ago
parent
commit
baf28519c2
  1. 3
      src/engine/objects/Corpse.java
  2. 2
      src/engine/workthreads/MineThread.java

3
src/engine/objects/Corpse.java

@ -63,6 +63,9 @@ public class Corpse extends AbstractWorldObject { @@ -63,6 +63,9 @@ 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());
} else {
Logger.error("No player passed in for corpse");

2
src/engine/workthreads/MineThread.java

@ -58,7 +58,7 @@ public class MineThread implements Runnable { @@ -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);
}
}
}

Loading…
Cancel
Save