Browse Source

Time remaining is from now().

master
MagicBot 2 years ago
parent
commit
bbbd5f8996
  1. 3
      src/engine/net/client/msg/HotzoneChangeMsg.java

3
src/engine/net/client/msg/HotzoneChangeMsg.java

@ -18,6 +18,7 @@ import engine.net.ByteBufferWriter; @@ -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 { @@ -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));
}

Loading…
Cancel
Save