Skip to content


Beds: Do not crash when placing in an unknown node
Browse files Browse the repository at this point in the history
  • 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
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ function beds.register_bed(name, def)

local pos
if minetest.registered_items[minetest.get_node(under).name].buildable_to then
if udef and udef.buildable_to then
pos = under
pos = pointed_thing.above
Expand Down

0 comments on commit 67c01a4

Please sign in to comment.