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());