Browse Source

Opening mines at the end of bootstrap.

master
MagicBot 2 years ago
parent
commit
8ff0216243
  1. 2
      src/engine/net/client/ClientMessagePump.java
  2. 8
      src/engine/server/world/WorldServer.java

2
src/engine/net/client/ClientMessagePump.java

@ -1491,7 +1491,7 @@ boolean updateCity = false; @@ -1491,7 +1491,7 @@ boolean updateCity = false;
return;
//make sure mine belongs to guild
if (mine.getOwningGuild() == null || mine.getOwningGuild().getObjectUUID() != sourcePlayer.getGuild().getObjectUUID())
if (mine.getOwningGuild().isErrant() || mine.getOwningGuild().getObjectUUID() != sourcePlayer.getGuild().getObjectUUID())
return;
//make sure valid resource

8
src/engine/server/world/WorldServer.java

@ -391,10 +391,6 @@ public class WorldServer { @@ -391,10 +391,6 @@ public class WorldServer {
Logger.info("Loading Mine data.");
Mine.loadAllMines();
// Open/Close mines for the current window
Logger.info("Processing mine window.");
HourlyJobThread.processMineWindow();
Logger.info("Loading Shrine data.");
DbManager.ShrineQueries.LOAD_ALL_SHRINES();
@ -472,6 +468,10 @@ public class WorldServer { @@ -472,6 +468,10 @@ public class WorldServer {
Logger.info("Starting Orphan Item Purge");
PurgeOprhans.startPurgeThread();
// Open/Close mines for the current window
Logger.info("Processing mine window.");
HourlyJobThread.processMineWindow();
// Calculate bootstrap time and rest boot time to current time.
java.time.Duration bootDuration = java.time.Duration.between(LocalDateTime.now(), bootTime);
long bootSeconds = Math.abs(bootDuration.getSeconds());

Loading…
Cancel
Save