Fix crash from missing node types.

This commit is contained in:
Duane 2016-07-12 21:20:55 -05:00
parent 4ad818a922
commit 8eedc5afc3
4 changed files with 13 additions and 2 deletions

View file

@ -108,6 +108,9 @@ for _, name in pairs(elixir_ingredients) do
if not item then
item = minetest.registered_nodes[name]
end
if not item then
break
end
if item then
if item.groups then
groups = table.copy(item.groups)