mirror of
https://github.com/ProjectSWGCore/NGECore2.git
synced 2026-07-31 01:15:57 -04:00
More work on cities
This commit is contained in:
@@ -527,6 +527,11 @@ public class ObjectService implements INetworkDispatch {
|
||||
} else {
|
||||
core.simulationService.remove(object, object.getWorldPosition().x, object.getWorldPosition().z, true);
|
||||
}
|
||||
@SuppressWarnings("unchecked") Vector<SWGObject> childObjects = (Vector<SWGObject>) object.getAttachment("childObjects");
|
||||
for(SWGObject child : childObjects) {
|
||||
if(child.getParentId() != 0)
|
||||
destroyObject(child);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user