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;
return; return;
//make sure mine belongs to guild //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; return;
//make sure valid resource //make sure valid resource

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

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

Loading…
Cancel
Save