From 4eb1350c3b65e823a93fc2a6623243f77de18905 Mon Sep 17 00:00:00 2001 From: MagicBot Date: Thu, 19 Jan 2023 12:21:29 -0500 Subject: [PATCH] Rename for clarity --- src/engine/objects/Mine.java | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/engine/objects/Mine.java b/src/engine/objects/Mine.java index 239cf197..d7502cc0 100644 --- a/src/engine/objects/Mine.java +++ b/src/engine/objects/Mine.java @@ -282,7 +282,7 @@ try{ // Errant mines are currently open. Set time to now. - LocalDateTime mineTime = LocalDateTime.now().withMinute(0).withSecond(0).withNano(0); + LocalDateTime mineOpenTime = LocalDateTime.now().withMinute(0).withSecond(0).withNano(0); Guild mineOwnerGuild = mine.getOwningGuild(); // Adjust the serialized mine time based upon whether @@ -291,16 +291,16 @@ try{ if (mineOwnerGuild.isErrant() == false) { int guildWOO = mineOwnerGuild.getMineTime(); - LocalDateTime guildMineTime = mineTime.withHour(guildWOO); + LocalDateTime guildMineTime = mineOpenTime.withHour(guildWOO); - if (mineTime.isAfter(guildMineTime)) - mineTime = guildMineTime.plusDays(1); + if (mineOpenTime.isAfter(guildMineTime)) + mineOpenTime = guildMineTime.plusDays(1); else - mineTime = guildMineTime; + mineOpenTime = guildMineTime; } - writer.putLocalDateTime(mineTime); - writer.putLocalDateTime(mineTime.plusHours(1)); + writer.putLocalDateTime(mineOpenTime); + writer.putLocalDateTime(mineOpenTime.plusHours(1)); writer.put(mine.isActive ? (byte) 0x01 : (byte) 0x00); writer.putFloat(mine.latitude);