projects
/
oweals
/
minetest_game.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
77c9408
)
Beds: Do not crash when placing in an unknown node
author
SmallJoker
<mk939@ymail.com>
Thu, 10 Aug 2017 07:52:53 +0000
(09:52 +0200)
committer
SmallJoker
<mk939@ymail.com>
Thu, 10 Aug 2017 08:08:24 +0000
(10:08 +0200)
mods/beds/api.lua
patch
|
blob
|
history
diff --git
a/mods/beds/api.lua
b/mods/beds/api.lua
index 97dde43dfabe9bc10c408ee8ec6a6dac35816e83..3632dc0cd3a465cbbbe3808a99e0490c2000ab17 100644
(file)
--- a/
mods/beds/api.lua
+++ b/
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