forked from VoxeLibre/VoxeLibre
Fix crash when placing snow layers on unknown nodes
This commit is contained in:
parent
a648e53699
commit
e9d202ee83
|
@ -1038,7 +1038,7 @@ for i=1,8 do
|
|||
|
||||
-- Get position where snow would be placed
|
||||
local target
|
||||
if minetest.registered_nodes[unode.name].buildable_to then
|
||||
if def and def.buildable_to then
|
||||
target = under
|
||||
else
|
||||
target = above
|
||||
|
|
Loading…
Reference in New Issue