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
|
// Adjust the serialized mine time based upon whether
|
||||||
// the Guild's mine window has passed or not.
|
// the Guild's mine window has passed or not.
|
||||||
|
|
||||||
if (mineOwnerGuild != null) {
|
if (mineOwnerGuild.isErrant() == false) {
|
||||||
|
|
||||||
int guildWOO = mineOwnerGuild.getMineTime();
|
int guildWOO = mineOwnerGuild.getMineTime();
|
||||||
LocalDateTime guildMineTime = mineTime.withHour(guildWOO);
|
LocalDateTime guildMineTime = mineTime.withHour(guildWOO);
|
||||||
|
|||||||
@@ -105,7 +105,7 @@ public class HourlyJobThread implements Runnable {
|
|||||||
|
|
||||||
// Open Errant Mines
|
// Open Errant Mines
|
||||||
|
|
||||||
if (mine.getOwningGuild() == null) {
|
if (mine.getOwningGuild().isErrant()) {
|
||||||
mine.handleStartMineWindow();
|
mine.handleStartMineWindow();
|
||||||
Mine.setLastChange(System.currentTimeMillis());
|
Mine.setLastChange(System.currentTimeMillis());
|
||||||
continue;
|
continue;
|
||||||
|
|||||||
Reference in New Issue
Block a user