forked from nalc/homedecor_modpack
fix some seats (#43)
This commit is contained in:
parent
806c8c5e78
commit
0f57b2268a
@ -18,6 +18,9 @@ homedecor.register("deckchair", {
|
|||||||
selection_box = dc_cbox,
|
selection_box = dc_cbox,
|
||||||
collision_box = dc_cbox,
|
collision_box = dc_cbox,
|
||||||
on_rotate = minetest.get_modpath("screwdriver") and screwdriver.disallow or nil,
|
on_rotate = minetest.get_modpath("screwdriver") and screwdriver.disallow or nil,
|
||||||
|
on_rightclick = function(pos, node, clicker, itemstack, pointed_thing)
|
||||||
|
return lrfurn.sit(pos, node, clicker, itemstack, pointed_thing, 1)
|
||||||
|
end
|
||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_alias("homedecor:deckchair_foot", "homedecor:deckchair")
|
minetest.register_alias("homedecor:deckchair_foot", "homedecor:deckchair")
|
||||||
@ -35,6 +38,9 @@ homedecor.register("deckchair_striped_blue", {
|
|||||||
selection_box = dc_cbox,
|
selection_box = dc_cbox,
|
||||||
collision_box = dc_cbox,
|
collision_box = dc_cbox,
|
||||||
on_rotate = minetest.get_modpath("screwdriver") and screwdriver.disallow or nil,
|
on_rotate = minetest.get_modpath("screwdriver") and screwdriver.disallow or nil,
|
||||||
|
on_rightclick = function(pos, node, clicker, itemstack, pointed_thing)
|
||||||
|
return lrfurn.sit(pos, node, clicker, itemstack, pointed_thing, 1)
|
||||||
|
end
|
||||||
})
|
})
|
||||||
|
|
||||||
homedecor.register("simple_bench", {
|
homedecor.register("simple_bench", {
|
||||||
@ -52,6 +58,9 @@ homedecor.register("simple_bench", {
|
|||||||
_sound_def = {
|
_sound_def = {
|
||||||
key = "node_sound_wood_defaults",
|
key = "node_sound_wood_defaults",
|
||||||
},
|
},
|
||||||
|
on_rightclick = function(pos, node, clicker, itemstack, pointed_thing)
|
||||||
|
return lrfurn.sit(pos, node, clicker, itemstack, pointed_thing, 1)
|
||||||
|
end
|
||||||
})
|
})
|
||||||
|
|
||||||
local bl1_sbox = {
|
local bl1_sbox = {
|
||||||
@ -142,9 +151,7 @@ homedecor.register("kitchen_chair_wood", {
|
|||||||
after_place_node = unifieddyes.fix_rotation_nsew,
|
after_place_node = unifieddyes.fix_rotation_nsew,
|
||||||
on_rotate = unifieddyes.fix_after_screwdriver_nsew,
|
on_rotate = unifieddyes.fix_after_screwdriver_nsew,
|
||||||
on_rightclick = function(pos, node, clicker, itemstack, pointed_thing)
|
on_rightclick = function(pos, node, clicker, itemstack, pointed_thing)
|
||||||
pos.y = pos.y+0 -- where do I put my ass ?
|
return lrfurn.sit(pos, node, clicker, itemstack, pointed_thing, 1)
|
||||||
homedecor.sit(pos, node, clicker)
|
|
||||||
return itemstack
|
|
||||||
end
|
end
|
||||||
})
|
})
|
||||||
|
|
||||||
@ -170,9 +177,7 @@ homedecor.register("kitchen_chair_padded", {
|
|||||||
on_dig = unifieddyes.on_dig,
|
on_dig = unifieddyes.on_dig,
|
||||||
on_rotate = unifieddyes.fix_after_screwdriver_nsew,
|
on_rotate = unifieddyes.fix_after_screwdriver_nsew,
|
||||||
on_rightclick = function(pos, node, clicker, itemstack, pointed_thing)
|
on_rightclick = function(pos, node, clicker, itemstack, pointed_thing)
|
||||||
pos.y = pos.y+0 -- where do I put my ass ?
|
return lrfurn.sit(pos, node, clicker, itemstack, pointed_thing, 1)
|
||||||
homedecor.sit(pos, node, clicker)
|
|
||||||
return itemstack
|
|
||||||
end
|
end
|
||||||
})
|
})
|
||||||
|
|
||||||
@ -210,6 +215,9 @@ for _, c in pairs(chairs) do
|
|||||||
collision_box = ofchairs_cbox,
|
collision_box = ofchairs_cbox,
|
||||||
expand = { top = "placeholder" },
|
expand = { top = "placeholder" },
|
||||||
on_rotate = minetest.get_modpath("screwdriver") and screwdriver.rotate_simple or nil,
|
on_rotate = minetest.get_modpath("screwdriver") and screwdriver.rotate_simple or nil,
|
||||||
|
on_rightclick = function(pos, node, clicker, itemstack, pointed_thing)
|
||||||
|
return lrfurn.sit(pos, node, clicker, itemstack, pointed_thing, 1)
|
||||||
|
end
|
||||||
})
|
})
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user