Browse Source

bugfix: guilds cannot be null only errant.

master
MagicBot 2 years ago
parent
commit
9e7cbdc2d3
  1. 2
      src/engine/objects/Mine.java
  2. 2
      src/engine/workthreads/HourlyJobThread.java

2
src/engine/objects/Mine.java

@ -288,7 +288,7 @@ try{ @@ -288,7 +288,7 @@ try{
// Adjust the serialized mine time based upon whether
// the Guild's mine window has passed or not.
if (mineOwnerGuild != null) {
if (mineOwnerGuild.isErrant() == false) {
int guildWOO = mineOwnerGuild.getMineTime();
LocalDateTime guildMineTime = mineTime.withHour(guildWOO);

2
src/engine/workthreads/HourlyJobThread.java

@ -105,7 +105,7 @@ public class HourlyJobThread implements Runnable { @@ -105,7 +105,7 @@ public class HourlyJobThread implements Runnable {
// Open Errant Mines
if (mine.getOwningGuild() == null) {
if (mine.getOwningGuild().isErrant()) {
mine.handleStartMineWindow();
Mine.setLastChange(System.currentTimeMillis());
continue;

Loading…
Cancel
Save