Refactored usage of HotZone; added cycle counter.

This commit is contained in:
2023-02-22 16:40:11 -05:00
parent 6ac1911770
commit 8ae973f5f4
7 changed files with 35 additions and 41 deletions
+3 -3
View File
@@ -52,7 +52,7 @@ public class HotzoneCmd extends AbstractDevCmd {
if (input.equalsIgnoreCase("random")) {
throwbackInfo(pc, "Previous hotzone: " + hotzoneInfo());
ZoneManager.generateAndSetRandomHotzone();
zone = ZoneManager.getHotZone();
zone = ZoneManager.hotZone;
} else {
zone = ZoneManager.findMacroZoneByName(input);
@@ -61,7 +61,7 @@ public class HotzoneCmd extends AbstractDevCmd {
return;
}
if (zone == ZoneManager.getHotZone()) {
if (zone == ZoneManager.hotZone) {
throwbackInfo(pc, "That macrozone is already the Hotzone.");
return;
}
@@ -92,7 +92,7 @@ public class HotzoneCmd extends AbstractDevCmd {
private static String hotzoneInfo() {
final int hotzoneTimeLeft = FastMath.secondsUntilNextHour();
final Zone hotzone = ZoneManager.getHotZone();
final Zone hotzone = ZoneManager.hotZone;
String hotzoneInfo;
if (hotzone == null) {