Skip to content

Commit 67c01a4

Browse files
committedAug 10, 2017
Beds: Do not crash when placing in an unknown node
1 parent 77c9408 commit 67c01a4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎mods/beds/api.lua

+1-1
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ function beds.register_bed(name, def)
5555
end
5656

5757
local pos
58-
if minetest.registered_items[minetest.get_node(under).name].buildable_to then
58+
if udef and udef.buildable_to then
5959
pos = under
6060
else
6161
pos = pointed_thing.above

0 commit comments

Comments
 (0)
Please sign in to comment.