Update internal.lua

Added a simple way to hide specific items from the inventry/craftguide - line 1 checks for any items in the hiden items list and applies the not_in_creative_inventory group to it, thus hiding the node.
This commit is contained in:
Ryan 2014-04-29 10:07:50 +01:00
parent b789f12a9d
commit 12a53cdf9d
1 changed files with 8 additions and 1 deletions

View File

@ -1,4 +1,11 @@
for name, def in pairs(minetest.registered_items) do
for _,v in pairs(unified_inventory.item_hide_list) do
if v == name then
minetest.registered_items[name].groups.not_in_creative_inventory = 1
end
end
end
function unified_inventory.get_formspec(player, page)
if not player then
return ""