|
|
@ -139,6 +139,8 @@ public class HourlyJobThread implements Runnable { |
|
|
|
// We can early exit here.
|
|
|
|
// We can early exit here.
|
|
|
|
|
|
|
|
|
|
|
|
if (mineBuilding.getRank() > 0) { |
|
|
|
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.setActive(false); |
|
|
|
mine.lastClaimer = null; |
|
|
|
mine.lastClaimer = null; |
|
|
|
return true; |
|
|
|
return true; |
|
|
@ -149,6 +151,8 @@ public class HourlyJobThread implements Runnable { |
|
|
|
// and keep the window open.
|
|
|
|
// and keep the window open.
|
|
|
|
|
|
|
|
|
|
|
|
if (!Mine.validateClaimer(mine.lastClaimer)) { |
|
|
|
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.lastClaimer = null; |
|
|
|
mine.updateGuildOwner(null); |
|
|
|
mine.updateGuildOwner(null); |
|
|
|
mine.setActive(true); |
|
|
|
mine.setActive(true); |
|
|
@ -157,6 +161,8 @@ public class HourlyJobThread implements Runnable { |
|
|
|
|
|
|
|
|
|
|
|
//Update ownership to map
|
|
|
|
//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.guildName = mine.getOwningGuild().getName(); |
|
|
|
mine.guildTag = mine.getOwningGuild().getGuildTag(); |
|
|
|
mine.guildTag = mine.getOwningGuild().getGuildTag(); |
|
|
|
Guild nation = mine.getOwningGuild().getNation(); |
|
|
|
Guild nation = mine.getOwningGuild().getNation(); |
|
|
|