Beds: Do not crash when placing in an unknown node

This commit is contained in:
SmallJoker 2017-08-10 09:52:53 +02:00
parent 77c9408721
commit 67c01a44c2

View File

@ -55,7 +55,7 @@ function beds.register_bed(name, def)
end end
local pos local pos
if minetest.registered_items[minetest.get_node(under).name].buildable_to then if udef and udef.buildable_to then
pos = under pos = under
else else
pos = pointed_thing.above pos = pointed_thing.above