mirror of
https://github.com/ProjectSWGCore/Holocore.git
synced 2026-07-14 00:03:01 -04:00
Added null check for parent in update transform with parent
This commit is contained in:
@@ -393,6 +393,11 @@ public class ObjectManager extends Manager {
|
||||
Location newLocation = transformWithParent.getLocation();
|
||||
newLocation.setTerrain(obj.getLocation().getTerrain());
|
||||
SWGObject parent = objectMap.get(transformWithParent.getCellId());
|
||||
if (parent == null) {
|
||||
System.err.println("ObjectManager: Could not find parent for transform! Cell: " + transformWithParent.getCellId());
|
||||
Log.e("ObjectManager", "Could not find parent for transform! Cell: %d Object: %s", transformWithParent.getCellId(), obj);
|
||||
return;
|
||||
}
|
||||
objectAwareness.move(obj, parent, newLocation);
|
||||
obj.sendParentDataTransforms(transformWithParent);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user