From bbbd5f89964a81c6f477cbcd82a4078924a7d67b Mon Sep 17 00:00:00 2001 From: MagicBot Date: Fri, 24 Feb 2023 08:48:36 -0500 Subject: [PATCH] Time remaining is from now(). --- src/engine/net/client/msg/HotzoneChangeMsg.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/engine/net/client/msg/HotzoneChangeMsg.java b/src/engine/net/client/msg/HotzoneChangeMsg.java index 2072976c..aa570a33 100644 --- a/src/engine/net/client/msg/HotzoneChangeMsg.java +++ b/src/engine/net/client/msg/HotzoneChangeMsg.java @@ -18,6 +18,7 @@ import engine.net.ByteBufferWriter; import engine.net.client.Protocol; import java.time.Duration; +import java.time.Instant; public class HotzoneChangeMsg extends ClientNetMsg { @@ -36,7 +37,7 @@ public class HotzoneChangeMsg extends ClientNetMsg { int hotZoneDuration = Integer.parseInt(ConfigManager.MB_HOTZONE_DURATION.getValue()); - endOfCycle = Duration.between(ZoneManager.hotZoneLastUpdate, ZoneManager.hotZoneLastUpdate.plusSeconds(hotZoneDuration * 3600)); + endOfCycle = Duration.between(Instant.now(), ZoneManager.hotZoneLastUpdate.plusSeconds(hotZoneDuration * 3600)); }