Skip to content
Permalink
Browse files

Beds: Do not crash when placing in an unknown node

  • Loading branch information...
SmallJoker committed Aug 10, 2017
1 parent 77c9408 commit 67c01a44c2a32eb47709a1fdc8ac25eb36bb37eb
Showing with 1 addition and 1 deletion.
  1. +1 −1 mods/beds/api.lua
@@ -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 comments on commit 67c01a4

Please sign in to comment.
You can’t perform that action at this time.