Fix crash from missing node types.
This commit is contained in:
parent
4ad818a922
commit
8eedc5afc3
4 changed files with 13 additions and 2 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue