Moved registerForIntent() into constructors of all services

This commit is contained in:
Obique PSWG
2015-11-01 09:41:07 -06:00
parent 1a261a6556
commit ccad047e4f
26 changed files with 64 additions and 83 deletions
+3 -3
View File
@@ -87,6 +87,9 @@ public class CoreManager extends Manager {
addChildService(engineManager);
addChildService(galacticManager);
}
registerForIntent(InboundPacketIntent.TYPE);
registerForIntent(OutboundPacketIntent.TYPE);
registerForIntent(ServerManagementIntent.TYPE);
}
/**
@@ -104,9 +107,6 @@ public class CoreManager extends Manager {
@Override
public boolean initialize() {
startTime = System.nanoTime();
registerForIntent(InboundPacketIntent.TYPE);
registerForIntent(OutboundPacketIntent.TYPE);
registerForIntent(ServerManagementIntent.TYPE);
packetDebug = getConfig(ConfigFile.PRIMARY).getBoolean("PACKET-DEBUG", false);
initializePacketOutput();
return galaxy != null && super.initialize();