mirror of
https://github.com/sys4-fr/server-nalc.git
synced 2025-06-28 06:11:47 +02:00
Commented a few unknown recipes and added warning message
- Added a warning message from unified_inventory when it detects a recipe involving an unknown item. Can be activated in minetest.conf with "show_unknown_craftrecipes" setting. - Commented a few of our unknown craft recipes
This commit is contained in:
@ -27,6 +27,9 @@ minetest.after(0.01, function()
|
||||
if (not groupchk and not minetest.registered_items[chk])
|
||||
or (groupchk and not unified_inventory.get_group_item(string.gsub(chk, "group:", "")).item) then
|
||||
unknowns = true
|
||||
if minetest.setting_getbool("show_unknown_craftrecipes") then
|
||||
minetest.log("error", "Recipe for item " .. recipe.output .. " contains unknown item " .. chk)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
|
Reference in New Issue
Block a user