Skip to content
Snippets Groups Projects
Commit 67c01a44 authored by SmallJoker's avatar SmallJoker
Browse files

Beds: Do not crash when placing in an unknown node

parent 77c94087
No related branches found
No related tags found
No related merge requests found
......@@ -55,7 +55,7 @@ function beds.register_bed(name, def)
end
local pos
if minetest.registered_items[minetest.get_node(under).name].buildable_to then
if udef and udef.buildable_to then
pos = under
else
pos = pointed_thing.above
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment