Bluestone_button: add nil check

This commit is contained in:
MoNTE48 2020-11-01 22:24:02 +01:00
parent 66680e74fb
commit c374351974

View File

@ -22,7 +22,7 @@ local function on_place(itemstack, placer, pointed_thing)
pointed_thing) or itemstack
end
if not node_def.walkable then
if not node_def or not node_def.walkable then
return itemstack -- Place on walkable node not allowed
end