Ensure registered items have groups

master
Ciaran Gultnieks 2014-11-04 09:56:25 +00:00
parent a09d9000f8
commit d01eaae9fc
1 changed files with 3 additions and 0 deletions

View File

@ -123,6 +123,9 @@ function core.register_item(name, itemdef)
else
error("Unable to register item: Type is invalid: " .. dump(itemdef))
end
if not itemdef.groups then
itemdef.groups = {}
end
-- Flowing liquid uses param2
if itemdef.type == "node" and itemdef.liquidtype == "flowing" then