Browse Source

Added Mine Window Close Debug

NovaTest
kevin 2 months ago
parent
commit
a4eea2173d
  1. 6
      src/engine/workthreads/HourlyJobThread.java

6
src/engine/workthreads/HourlyJobThread.java

@ -139,6 +139,8 @@ public class HourlyJobThread implements Runnable { @@ -139,6 +139,8 @@ public class HourlyJobThread implements Runnable {
// We can early exit here.
if (mineBuilding.getRank() > 0) {
Logger.debug("Mine still standing when closing window. Mine Object UUID: " + mine.getObjectUUID() + " Building Id: " + mine.getBuildingID());
mine.setActive(false);
mine.lastClaimer = null;
return true;
@ -149,6 +151,8 @@ public class HourlyJobThread implements Runnable { @@ -149,6 +151,8 @@ public class HourlyJobThread implements Runnable {
// and keep the window open.
if (!Mine.validateClaimer(mine.lastClaimer)) {
Logger.debug("Mine has no valid claimer when closing window. Mine Object UUID: " + mine.getObjectUUID() + " Building Id: " + mine.getBuildingID());
mine.lastClaimer = null;
mine.updateGuildOwner(null);
mine.setActive(true);
@ -157,6 +161,8 @@ public class HourlyJobThread implements Runnable { @@ -157,6 +161,8 @@ public class HourlyJobThread implements Runnable {
//Update ownership to map
Logger.debug("Mine ownership changing when closing window. Mine Object UUID: " + mine.getObjectUUID() + " Building Id: " + mine.getBuildingID() + " new owning guild: " + mine.getOwningGuild().getObjectUUID());
mine.guildName = mine.getOwningGuild().getName();
mine.guildTag = mine.getOwningGuild().getGuildTag();
Guild nation = mine.getOwningGuild().getNation();

Loading…
Cancel
Save