From 4c10e01539a602050d66c19e7a2d1366776a46f1 Mon Sep 17 00:00:00 2001 From: MagicBot Date: Fri, 13 Jan 2023 14:37:53 -0500 Subject: [PATCH] Reset time calculation updated. --- src/engine/objects/Mine.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/engine/objects/Mine.java b/src/engine/objects/Mine.java index 642900ff..fde086cf 100644 --- a/src/engine/objects/Mine.java +++ b/src/engine/objects/Mine.java @@ -577,7 +577,7 @@ try{ PlayerCharacter claimer = PlayerCharacter.getFromCache(this.lastClaimerID); if (!validClaimer(claimer)){ - LocalDateTime resetTime = LocalDateTime.now().withDayOfMonth(LocalDateTime.now().getDayOfMonth()).withHour(LocalDateTime.now().getHour()).withMinute(0).withSecond(0).withNano(0); + LocalDateTime resetTime = LocalDateTime.now().withMinute(0).withSecond(0).withNano(0); this.openDate = resetTime; return false; } @@ -591,7 +591,7 @@ try{ // return false; if (this.owningGuild == null || this.owningGuild.isErrant() || this.owningGuild.getNation().isErrant()){ - LocalDateTime resetTime = LocalDateTime.now().withDayOfMonth(LocalDateTime.now().getDayOfMonth()).withHour(LocalDateTime.now().getHour()).withMinute(0).withSecond(0).withNano(0); + LocalDateTime resetTime = LocalDateTime.now().withMinute(0).withSecond(0).withNano(0); this.openDate = resetTime; return false; }