Merged in Undercova/holocore (pull request #68)

Fixed spawner service to load all location entries properly
This commit is contained in:
Obique PSWG
2015-09-21 07:04:10 -05:00
+2 -5
View File
@@ -47,10 +47,7 @@ import services.objects.ObjectManager;
public final class SpawnerService extends Service {
private static final String GET_ALL_SPAWNERS_SQL =
"SELECT static.*, buildings.object_id, buildings.terrain_name FROM static "
+ "INNER JOIN buildings ON static.building_id = buildings.building_id "
+ "GROUP BY buildings.building_id";
private static final String GET_ALL_SPAWNERS_SQL = "SELECT static.*, buildings.object_id, buildings.terrain_name FROM static, buildings WHERE buildings.building_id = static.building_id";
private final ObjectManager objectManager;
private final Collection<Spawner> spawners;
@@ -133,4 +130,4 @@ public final class SpawnerService extends Service {
spawners.clear();
}
}
}