Slight fix to PGI creation

This commit is contained in:
Kae 2023-08-20 17:43:09 +10:00
parent e5c6d005d7
commit 0bb0bd30b0

View File

@ -506,7 +506,7 @@ ItemPtr ItemDatabase::tryCreateItem(ItemDescriptor const& descriptor, Maybe<floa
}
catch (std::exception const& e) {
Logger::error("Could not instantiate item '{}'. {}", descriptor, outputException(e, false));
result = createItem(m_items.get("perfectlygenericitem").type, itemConfig("perfectlygenericitem", {}, {}));
result = createItem(m_items.get("perfectlygenericitem").type, itemConfig("perfectlygenericitem", JsonObject(), {}, {}));
}
result->setCount(descriptor.count());