Slight fix to PGI creation
This commit is contained in:
parent
e5c6d005d7
commit
0bb0bd30b0
@ -506,7 +506,7 @@ ItemPtr ItemDatabase::tryCreateItem(ItemDescriptor const& descriptor, Maybe<floa
|
|||||||
}
|
}
|
||||||
catch (std::exception const& e) {
|
catch (std::exception const& e) {
|
||||||
Logger::error("Could not instantiate item '{}'. {}", descriptor, outputException(e, false));
|
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());
|
result->setCount(descriptor.count());
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user