mirror of
https://github.com/luanti-org/minetest_game.git
synced 2025-03-15 04:11:24 +00:00
Fix logic error in bed rotation
This commit is contained in:
parent
1e237b8d18
commit
9a9df3a42e
1 changed files with 2 additions and 2 deletions
|
@ -115,8 +115,8 @@ function beds.register_bed(name, def)
|
|||
local dir = minetest.facedir_to_dir(node.param2)
|
||||
local p = vector.add(pos, dir)
|
||||
local node2 = minetest.get_node_or_nil(p)
|
||||
if not node2 or not minetest.get_item_group(node2.name, "bed") == 2 or
|
||||
not node.param2 == node2.param2 then
|
||||
if not node2 or minetest.get_item_group(node2.name, "bed") ~= 2 or
|
||||
node.param2 ~= node2.param2 then
|
||||
return false
|
||||
end
|
||||
if minetest.is_protected(p, user:get_player_name()) then
|
||||
|
|
Loading…
Add table
Reference in a new issue