Browse Source

Debugging isErrant()

master
MagicBot 2 years ago
parent
commit
efa504a714
  1. 3
      src/engine/objects/Mine.java
  2. 5
      src/engine/workthreads/HourlyJobThread.java

3
src/engine/objects/Mine.java

@ -100,6 +100,9 @@ public class Mine extends AbstractGameObject { @@ -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;

5
src/engine/workthreads/HourlyJobThread.java

@ -102,9 +102,12 @@ public class HourlyJobThread implements Runnable { @@ -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());

Loading…
Cancel
Save