add an assert to make failure here more informative
This commit is contained in:
parent
3ca6a56dac
commit
78f7bf4997
@ -526,6 +526,7 @@ if minetest.get_modpath("doc") then
|
||||
local currencies = {}
|
||||
for _, currency_item in ipairs(market_def.currency_ordered) do
|
||||
local item_def = minetest.registered_items[currency_item.item]
|
||||
assert(item_def, "Failed to find item definition for " .. currency_item.item)
|
||||
table.insert(currencies, S("1 @1 = @2@3", item_def.description, market_def.currency_symbol, currency_item.amount))
|
||||
end
|
||||
local inventory_limit
|
||||
|
Loading…
x
Reference in New Issue
Block a user