mirror of
https://bitbucket.org/projectswg/holocore.git
synced 2026-10-11 03:13:21 -04:00
Removed script initialization from CoreManager, since it is now unnecessary
This commit is contained in:
@@ -103,7 +103,6 @@ public class CoreManager extends Manager {
|
||||
registerForIntent(ServerManagementIntent.TYPE);
|
||||
packetDebug = getConfig(ConfigFile.PRIMARY).getBoolean("PACKET-DEBUG", false);
|
||||
initializePacketOutput();
|
||||
initializeScripts();
|
||||
return galaxy != null && super.initialize();
|
||||
}
|
||||
|
||||
@@ -145,18 +144,6 @@ public class CoreManager extends Manager {
|
||||
}
|
||||
}
|
||||
|
||||
private void initializeScripts() {
|
||||
Config c = getConfig(ConfigFile.PRIMARY);
|
||||
if (!c.getBoolean("LOAD-SCRIPTS", true)) {
|
||||
System.out.println("CoreManager: Not preloading scripts. Reason: disabled");
|
||||
return;
|
||||
}
|
||||
System.out.println("CoreManager: Initializing scripts...");
|
||||
long start = System.nanoTime();
|
||||
long end = System.nanoTime();
|
||||
System.out.println("CoreManager: Initialized scripts. Took " + (end-start)/1E6 + "ms");
|
||||
}
|
||||
|
||||
private void handleServerManagementIntent(ServerManagementIntent i) {
|
||||
switch(i.getEvent()) {
|
||||
case SHUTDOWN: initiateShutdownSequence(i); break;
|
||||
|
||||
Reference in New Issue
Block a user