forked from mtcontrib/homedecor_modpack
Disable sitting functions (broken)
This commit is contained in:
parent
677106529b
commit
b01d3b2b4f
@ -1,5 +1,8 @@
|
|||||||
local S = homedecor.gettext
|
local S = homedecor.gettext
|
||||||
|
|
||||||
|
-- Sitting functions disabled for now because of buggyness.
|
||||||
|
|
||||||
|
--[[
|
||||||
function homedecor.sit(pos, node, clicker)
|
function homedecor.sit(pos, node, clicker)
|
||||||
local name = clicker:get_player_name()
|
local name = clicker:get_player_name()
|
||||||
local meta = minetest:get_meta(pos)
|
local meta = minetest:get_meta(pos)
|
||||||
@ -39,6 +42,7 @@ function homedecor.sit_exec(pos, node, clicker) -- don't move these functions in
|
|||||||
clicker:setpos(pos)
|
clicker:setpos(pos)
|
||||||
default.player_set_animation(clicker, "sit", 30)
|
default.player_set_animation(clicker, "sit", 30)
|
||||||
end
|
end
|
||||||
|
--]]
|
||||||
|
|
||||||
local table_colors = { "", "mahogany", "white" }
|
local table_colors = { "", "mahogany", "white" }
|
||||||
|
|
||||||
@ -119,10 +123,12 @@ for i in ipairs(chaircolors) do
|
|||||||
fixed = {-0.3, -0.5, -0.3, 0.3, 0.5, 0.3},
|
fixed = {-0.3, -0.5, -0.3, 0.3, 0.5, 0.3},
|
||||||
},
|
},
|
||||||
groups = {snappy=2,choppy=2,oddly_breakable_by_hand=2},
|
groups = {snappy=2,choppy=2,oddly_breakable_by_hand=2},
|
||||||
|
--[[
|
||||||
on_rightclick = function(pos, node, clicker)
|
on_rightclick = function(pos, node, clicker)
|
||||||
pos.y = pos.y-0 -- player's sit position.
|
pos.y = pos.y-0 -- player's sit position.
|
||||||
homedecor.sit_exec(pos, node, clicker)
|
homedecor.sit_exec(pos, node, clicker)
|
||||||
end,
|
end,
|
||||||
|
--]]
|
||||||
})
|
})
|
||||||
|
|
||||||
if color ~= "" then
|
if color ~= "" then
|
||||||
@ -136,11 +142,13 @@ for i in ipairs(chaircolors) do
|
|||||||
},
|
},
|
||||||
sunlight_propagates = true,
|
sunlight_propagates = true,
|
||||||
groups = {snappy=2,choppy=2,oddly_breakable_by_hand=2},
|
groups = {snappy=2,choppy=2,oddly_breakable_by_hand=2},
|
||||||
|
--[[
|
||||||
on_rightclick = function(pos, node, clicker)
|
on_rightclick = function(pos, node, clicker)
|
||||||
pos.y = pos.y-0.1 -- player's sit position.
|
pos.y = pos.y-0.1 -- player's sit position.
|
||||||
homedecor.sit_exec(pos, node, clicker)
|
homedecor.sit_exec(pos, node, clicker)
|
||||||
clicker:set_hp(20)
|
clicker:set_hp(20)
|
||||||
end,
|
end,
|
||||||
|
--]]
|
||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_craft({
|
minetest.register_craft({
|
||||||
@ -349,10 +357,12 @@ homedecor.register("office_chair_"..c, {
|
|||||||
selection_box = ofchairs_sbox,
|
selection_box = ofchairs_sbox,
|
||||||
collision_box = ofchairs_cbox,
|
collision_box = ofchairs_cbox,
|
||||||
expand = { top = "air" },
|
expand = { top = "air" },
|
||||||
|
--[[
|
||||||
on_rightclick = function(pos, node, clicker)
|
on_rightclick = function(pos, node, clicker)
|
||||||
pos.y = pos.y+0.14 -- player's sit position.
|
pos.y = pos.y+0.14 -- player's sit position.
|
||||||
homedecor.sit_exec(pos, node, clicker)
|
homedecor.sit_exec(pos, node, clicker)
|
||||||
end,
|
end,
|
||||||
|
--]]
|
||||||
})
|
})
|
||||||
|
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user