From efa504a714b6397c246f2fc7f9818ce2db8d56cf Mon Sep 17 00:00:00 2001 From: MagicBot Date: Thu, 19 Jan 2023 16:38:39 -0500 Subject: [PATCH] Debugging isErrant() --- src/engine/objects/Mine.java | 3 +++ src/engine/workthreads/HourlyJobThread.java | 5 ++++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/src/engine/objects/Mine.java b/src/engine/objects/Mine.java index cfc8265f..97029d18 100644 --- a/src/engine/objects/Mine.java +++ b/src/engine/objects/Mine.java @@ -100,6 +100,9 @@ public class Mine extends AbstractGameObject { this.zoneName = "Unknown Mine"; } + if (ownerUID == 0) + ownerUID = ownerUID - 1 + 1; + this.owningGuild = Guild.getGuild(ownerUID); Guild nation = null; diff --git a/src/engine/workthreads/HourlyJobThread.java b/src/engine/workthreads/HourlyJobThread.java index a98946ef..3d635191 100644 --- a/src/engine/workthreads/HourlyJobThread.java +++ b/src/engine/workthreads/HourlyJobThread.java @@ -102,9 +102,12 @@ public class HourlyJobThread implements Runnable { for (Mine mine : mines) { try { - + int foo; // Open Errant Mines + if (mine.getBuildingID() == 1250) + foo = 1; + if (mine.getOwningGuild().isErrant()) { mine.handleStartMineWindow(); Mine.setLastChange(System.currentTimeMillis());