From ab2b7092fd5e8947f7dc8c773c37c056618533cd Mon Sep 17 00:00:00 2001 From: FatBoy-DOTC Date: Thu, 29 Feb 2024 21:32:39 -0600 Subject: [PATCH] hard set mine windows --- src/engine/objects/Mine.java | 20 ++++---------------- 1 file changed, 4 insertions(+), 16 deletions(-) diff --git a/src/engine/objects/Mine.java b/src/engine/objects/Mine.java index 8b1e925d..15706ae9 100644 --- a/src/engine/objects/Mine.java +++ b/src/engine/objects/Mine.java @@ -293,22 +293,10 @@ public class Mine extends AbstractGameObject { // If a mine is active serialize current datetime irrespective // of any claim. - if (mineNatonGuild.isEmptyGuild() == false && mine.isActive == false) { - - int guildWOO = mine.liveTime;//mineNatonGuild.getNation().getMineTime(); - LocalDateTime guildMineTime = mineOpenTime.withHour(guildWOO); - - if (mineOpenTime.isAfter(guildMineTime) || mine.wasClaimed == true) - mineOpenTime = guildMineTime.plusDays(1); - else - mineOpenTime = guildMineTime; - - } else{ - if (mineOpenTime.isAfter(LocalDateTime.now().withHour(mine.liveTime).withMinute(0).withSecond(0).withNano(0)) || mine.wasClaimed == true) - mineOpenTime = LocalDateTime.now().withHour(mine.liveTime).withMinute(0).withSecond(0).withNano(0).plusDays(1); - else - mineOpenTime = LocalDateTime.now().withHour(mine.liveTime).withMinute(0).withSecond(0).withNano(0); - } + if (mineOpenTime.isAfter(LocalDateTime.now().withHour(mine.liveTime).withMinute(0).withSecond(0).withNano(0)) || mine.wasClaimed == true) + mineOpenTime = LocalDateTime.now().withHour(mine.liveTime).withMinute(0).withSecond(0).withNano(0).plusDays(1); + else + mineOpenTime = LocalDateTime.now().withHour(mine.liveTime).withMinute(0).withSecond(0).withNano(0); writer.putLocalDateTime(mineOpenTime); writer.putLocalDateTime(mineOpenTime.plusHours(1));