mirror of
https://github.com/ProjectSWGCore/Holocore.git
synced 2026-10-19 09:03:02 -04:00
Fixed null pointer when iff doesn't load correctly
This commit is contained in:
@@ -196,7 +196,9 @@ public final class ObjectCreator {
|
||||
private static void handlePostCreation(SWGObject object, ObjectData attributes) {
|
||||
addObjectAttributes(object, attributes);
|
||||
createObjectSlots(object);
|
||||
object.setGameObjectType(GameObjectType.getTypeFromId((Integer) object.getDataAttribute(ObjectDataAttribute.GAME_OBJECT_TYPE)));
|
||||
Object got = object.getDataAttribute(ObjectDataAttribute.GAME_OBJECT_TYPE);
|
||||
if (got != null)
|
||||
object.setGameObjectType(GameObjectType.getTypeFromId((Integer) got));
|
||||
}
|
||||
|
||||
private static void addObjectAttributes(SWGObject obj, ObjectData attributes) {
|
||||
|
||||
Reference in New Issue
Block a user