1
0
mirror of https://github.com/mt-mods/homedecor_modpack.git synced 2025-07-21 23:00:22 +02:00

handle multiple seats in sofas

This commit is contained in:
unknown
2022-05-01 14:32:05 -04:00
parent 6867564f44
commit fdb7b55a81
6 changed files with 52 additions and 42 deletions

View File

@ -42,12 +42,7 @@ minetest.register_node(":lrfurn:longsofa", {
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, 3)
end
})