mirror of
https://github.com/mt-mods/homedecor_modpack.git
synced 2025-07-21 06:40:23 +02:00
handle multiple seats in sofas
This commit is contained in:
@ -42,12 +42,7 @@ minetest.register_node(":lrfurn:sofa", {
|
||||
end,
|
||||
on_dig = unifieddyes.on_dig,
|
||||
on_rightclick = function(pos, node, clicker, itemstack, pointed_thing)
|
||||
if not clicker:is_player() then
|
||||
return itemstack
|
||||
end
|
||||
pos.y = pos.y-0.5
|
||||
clicker:setpos(pos)
|
||||
return itemstack
|
||||
return lrfurn.sit(pos, node, clicker, itemstack, pointed_thing, 2)
|
||||
end
|
||||
})
|
||||
|
||||
|
Reference in New Issue
Block a user