forked from MagicBane/Server
bugfix: guilds cannot be null only errant.
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user