mirror of
https://github.com/ProjectSWGCore/Holocore.git
synced 2026-10-08 23:13:25 -04:00
Moved registerForIntent() into constructors of all services
This commit is contained in:
@@ -43,13 +43,16 @@ public abstract class Service implements IntentReceiver {
|
||||
|
||||
private static final OutboundPacketService outboundPacketService = new OutboundPacketService();
|
||||
|
||||
public Service() {
|
||||
IntentManager.getInstance().initialize();
|
||||
}
|
||||
|
||||
/**
|
||||
* Initializes this service. If the service returns false on this method
|
||||
* then the initialization failed and may not work as intended.
|
||||
* @return TRUE if initialization was successful, FALSE otherwise
|
||||
*/
|
||||
public boolean initialize() {
|
||||
IntentManager.getInstance().initialize();
|
||||
return DataManager.getInstance().isInitialized();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user