mirror of
https://github.com/ProjectSWGCore/NGECore2.git
synced 2026-10-14 04:13:14 -04:00
Fixed buildouts besides buildings and their children not being added to quadtree
Fixed some bugs with retrieving quest items Changed quest service's next task method to temporarily not auto-advance to next quest if it's defined - will be re-enabled when most of task types are done Changed buildout objects to load server templates (unsure why they were not loaded before) Fixed SpawnPoint odb save error
This commit is contained in:
@@ -185,11 +185,15 @@ public class SimulationService implements INetworkDispatch {
|
||||
}
|
||||
|
||||
public void insertSnapShotObjects() {
|
||||
System.out.println("Inserting snapshot buildings...");
|
||||
List<SWGObject> objectList = new ArrayList<SWGObject>(core.objectService.getObjectList().values());
|
||||
for(SWGObject obj : objectList) {
|
||||
if(obj.getParentId() == 0 && /*(*/obj.isInSnapshot() /*|| obj.getAttachment("isBuildout") != null)*/)
|
||||
// Buildings are inserted via another method from the odb, so no need to load them into the quadtree as well
|
||||
if(obj.getParentId() == 0 && (obj.isInSnapshot() || obj.getAttachment("isBuildout") != null) && obj.getAttachment("buildoutBuilding") == null) {
|
||||
add(obj, obj.getPosition().x, obj.getPosition().z);
|
||||
}
|
||||
}
|
||||
System.out.println("Snapshots inserted!");
|
||||
}
|
||||
|
||||
public void insertPersistentBuildings() {
|
||||
|
||||
Reference in New Issue
Block a user