From af7d801388806c81e0302c09751f12576d3e7e94 Mon Sep 17 00:00:00 2001 From: MagicBot Date: Tue, 10 Jan 2023 12:27:54 -0500 Subject: [PATCH] bugfix: not overriding mine open date on boot. --- src/engine/objects/Mine.java | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/engine/objects/Mine.java b/src/engine/objects/Mine.java index cd367251..6482ead9 100644 --- a/src/engine/objects/Mine.java +++ b/src/engine/objects/Mine.java @@ -231,7 +231,7 @@ try{ int mineTime = (nation != null && !nation.isErrant()) ? nation.getMineTime() : MBServerStatics.MINE_EARLY_WINDOW; - LocalDateTime openDate = LocalDateTime.now().withHour(mineTime).withMinute(0).withSecond(0).withNano(0); + this.openDate = this.openDate.withHour(mineTime).withMinute(0).withSecond(0).withNano(0); //Failed to Update Database, default mine time. @@ -242,8 +242,6 @@ try{ return; } - this.openDate = openDate; - } public boolean changeProductionType(Resource resource){