The loading of spawners now happens within initialization() of SpawnerService instead of in ObjectManager

This commit is contained in:
Mads Boddum
2015-08-27 01:21:12 +02:00
parent 65babac422
commit 5d29903864
2 changed files with 3 additions and 8 deletions
-8
View File
@@ -114,19 +114,11 @@ public class ObjectManager extends Manager {
registerForIntent(DeleteCharacterIntent.TYPE);
objectAwareness.initialize();
loadClientObjects();
loadSpawners();
maxObjectId = 1000000000; // Gets over all the buildouts/snapshots
loadObjects();
return super.initialize();
}
private void loadSpawners() {
Config c = getConfig(ConfigFile.FEATURES);
if (c.getBoolean("SPAWNERS-ENABLED", true)) {
spawnerService.loadEggs();
}
}
private void loadObjects() {
long startLoad = System.nanoTime();
Log.i("ObjectManager", "Loading objects from ObjectDatabase...");