bugfix: guilds cannot be null only errant.

This commit is contained in:
2023-01-19 12:19:37 -05:00
parent c89b60221e
commit 9e7cbdc2d3
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -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);
+1 -1
View File
@@ -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;