This commit is contained in:
Alexander Weber 2018-09-12 20:03:17 +02:00
parent 21747715d8
commit e46cf78a30

View File

@ -39,7 +39,7 @@ end
------------------------------------------------------------------------ ------------------------------------------------------------------------
-- Get group assignment for item -- Get group assignment for item
------------------------------------------------------------------------ ------------------------------------------------------------------------
local function get_group_addingment(def) local function get_group_assingment(def)
return def.mod_origin return def.mod_origin
end end
@ -52,7 +52,7 @@ minetest.after(0,function()
if def.groups.not_in_creative_inventory ~= 1 and if def.groups.not_in_creative_inventory ~= 1 and
def.description and def.description ~= "" then def.description and def.description ~= "" then
local group = get_group_addingment(def) local group = get_group_assingment(def)
local itemgroup = get_or_new_itemgroup(group) local itemgroup = get_or_new_itemgroup(group)
itemgroup.items[itemname] = def itemgroup.items[itemname] = def
table.insert(itemgroup.items_unordered, def) table.insert(itemgroup.items_unordered, def)