add an assert to make failure here more informative

This commit is contained in:
FaceDeer 2020-07-03 15:54:23 -06:00
parent 3ca6a56dac
commit 78f7bf4997

View File

@ -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