mirror of
https://github.com/ProjectSWGCore/Holocore.git
synced 2026-10-18 08:02:56 -04:00
Moved registerForIntent() into constructors of all services
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user