Debugging isErrant()

This commit is contained in:
2023-01-19 16:38:39 -05:00
parent ea34418f2d
commit efa504a714
2 changed files with 7 additions and 1 deletions
+3
View File
@@ -100,6 +100,9 @@ public class Mine extends AbstractGameObject {
this.zoneName = "Unknown Mine"; this.zoneName = "Unknown Mine";
} }
if (ownerUID == 0)
ownerUID = ownerUID - 1 + 1;
this.owningGuild = Guild.getGuild(ownerUID); this.owningGuild = Guild.getGuild(ownerUID);
Guild nation = null; Guild nation = null;
+4 -1
View File
@@ -102,9 +102,12 @@ public class HourlyJobThread implements Runnable {
for (Mine mine : mines) { for (Mine mine : mines) {
try { try {
int foo;
// Open Errant Mines // Open Errant Mines
if (mine.getBuildingID() == 1250)
foo = 1;
if (mine.getOwningGuild().isErrant()) { if (mine.getOwningGuild().isErrant()) {
mine.handleStartMineWindow(); mine.handleStartMineWindow();
Mine.setLastChange(System.currentTimeMillis()); Mine.setLastChange(System.currentTimeMillis());