Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Beds: Do not crash when placing in an unknown node
  • Loading branch information
SmallJoker committed Aug 10, 2017
1 parent 77c9408 commit 67c01a4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mods/beds/api.lua
Expand Up @@ -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
Expand Down

0 comments on commit 67c01a4

Please sign in to comment.