mirror of
https://github.com/ProjectSWGCore/NGECore2.git
synced 2026-07-14 00:02:07 -04:00
is the object null?
This commit is contained in:
@@ -1223,14 +1223,18 @@ public class ObjectService implements INetworkDispatch {
|
||||
});
|
||||
|
||||
creature.viewChildren(creature, true, true, (object) -> {
|
||||
if(object.getMutex() == null)
|
||||
object.initializeBaselines();
|
||||
object.initAfterDBLoad();
|
||||
if(object.getParentId() != 0 && object.getContainer() == null)
|
||||
object.setParent(getObject(object.getParentId()));
|
||||
object.getContainerInfo(object.getTemplate());
|
||||
if(getObject(object.getObjectID()) != null)
|
||||
objectList.put(object.getObjectID(), object);
|
||||
if (object != null) {
|
||||
if(object.getMutex() == null)
|
||||
object.initializeBaselines();
|
||||
object.initAfterDBLoad();
|
||||
if(object.getParentId() != 0 && object.getContainer() == null)
|
||||
object.setParent(getObject(object.getParentId()));
|
||||
object.getContainerInfo(object.getTemplate());
|
||||
if(getObject(object.getObjectID()) != null)
|
||||
objectList.put(object.getObjectID(), object);
|
||||
} else {
|
||||
Thread.currentThread().dumpStack();
|
||||
}
|
||||
});
|
||||
|
||||
if(creature.getParentId() != 0) {
|
||||
|
||||
Reference in New Issue
Block a user