Fixed staticService ordering

This commit is contained in:
Treeku
2014-05-11 12:06:08 +01:00
parent 4398a5ed93
commit 67fda7163a
+5 -6
View File
@@ -318,6 +318,7 @@ public class NGECore {
harvesterService = new HarvesterService(this);
mountService = new MountService(this);
playerCityService = new PlayerCityService(this);
staticService = new StaticService(this);
if (config.keyExists("JYTHONCONSOLE.PORT")) {
int jythonPort = config.getInt("JYTHONCONSOLE.PORT");
@@ -375,6 +376,7 @@ public class NGECore {
zoneDispatch.addService(mountService);
zoneDispatch.addService(housingService);
zoneDispatch.addService(playerCityService);
zoneDispatch.addService(staticService);
if (optionsConfigLoaded && options.getInt("LOAD.RESOURCE.SYSTEM") == 1) {
zoneDispatch.addService(surveyService);
@@ -383,7 +385,7 @@ public class NGECore {
zoneServer = new MINAServer(zoneDispatch, config.getInt("ZONE.PORT"));
zoneServer.start();
staticService = new StaticService(this);
//Start terrainList
// Original Planets
terrainService.addPlanet(1, "tatooine", "terrain/tatooine.trn", true);
@@ -464,10 +466,6 @@ public class NGECore {
// Zone services that need to be loaded after the above
zoneDispatch.addService(simulationService);
// Static Spawns
staticService.spawnStatics();
guildService = new GuildService(this);
zoneDispatch.addService(guildService);
@@ -485,7 +483,6 @@ public class NGECore {
instanceService = new InstanceService(this);
zoneDispatch.addService(instanceService);
weatherService = new WeatherService(this);
weatherService.loadPlanetSettings();
@@ -495,6 +492,8 @@ public class NGECore {
spawnService.loadDynamicGroups();;
spawnService.loadSpawnAreas();
staticService.spawnStatics();
equipmentService.loadBonusSets();
retroService.run();