0
0
Fork 0

[mcl_beds] fix warnings

This commit is contained in:
AFCMS 2021-05-23 10:57:07 +02:00
parent be5eb621fd
commit 8f6a97eefe
1 changed files with 2 additions and 2 deletions

View File

@ -321,12 +321,12 @@ function mcl_beds.on_rightclick(pos, player, is_top)
if not mcl_beds.player[name] then if not mcl_beds.player[name] then
local message local message
if is_top then if is_top then
_, message = lay_down(player, ppos, pos) message = select(2, lay_down(player, ppos, pos))
else else
local node = minetest.get_node(pos) local node = minetest.get_node(pos)
local dir = minetest.facedir_to_dir(node.param2) local dir = minetest.facedir_to_dir(node.param2)
local other = vector.add(pos, dir) local other = vector.add(pos, dir)
_, message = lay_down(player, ppos, other) message = select(2, lay_down(player, ppos, other))
end end
if message then if message then
mcl_tmp_message.message(player, message) mcl_tmp_message.message(player, message)