1
0
mirror of https://github.com/mt-mods/homedecor_modpack.git synced 2024-12-23 08:20:21 +01:00
This commit is contained in:
jp 2015-01-24 21:27:45 +01:00
parent c6790ad21e
commit da2af88eb8

View File

@ -116,7 +116,7 @@ for i in ipairs(chaircolors) do
}, },
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) -- don't move these functions inside sit() on_rightclick = function(pos, node, clicker) -- don't move these functions inside sit()
sit(pos, node, clicker, pos) sit(pos, node, clicker)
pos.y = pos.y-0 -- player's sit position. pos.y = pos.y-0 -- player's sit position.
clicker:setpos(pos) clicker:setpos(pos)
default.player_set_animation(clicker, "sit", 30) default.player_set_animation(clicker, "sit", 30)
@ -151,7 +151,7 @@ for i in ipairs(chaircolors) do
}, },
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) -- don't move these functions inside sit() on_rightclick = function(pos, node, clicker) -- don't move these functions inside sit()
sit(pos, node, clicker, pos) sit(pos, node, clicker)
pos.y = pos.y-0.1 -- player's sit position. pos.y = pos.y-0.1 -- player's sit position.
clicker:setpos(pos) clicker:setpos(pos)
default.player_set_animation(clicker, "sit", 30) default.player_set_animation(clicker, "sit", 30)
@ -403,7 +403,7 @@ homedecor.register("simple_bench", {
} }
}, },
on_rightclick = function(pos, node, clicker) -- don't move these functions inside sit() on_rightclick = function(pos, node, clicker) -- don't move these functions inside sit()
sit(pos, node, clicker, pos) sit(pos, node, clicker)
pos.y = pos.y-0 -- player's sit position. pos.y = pos.y-0 -- player's sit position.
clicker:setpos(pos) clicker:setpos(pos)
default.player_set_animation(clicker, "sit", 30) default.player_set_animation(clicker, "sit", 30)
@ -440,7 +440,7 @@ homedecor.register("bench_large_1_left", {
}, },
expand = { right="homedecor:bench_large_1_right" }, expand = { right="homedecor:bench_large_1_right" },
on_rightclick = function(pos, node, clicker) -- don't move these functions inside sit() on_rightclick = function(pos, node, clicker) -- don't move these functions inside sit()
sit(pos, node, clicker, pos) sit(pos, node, clicker)
pos.y = pos.y-0 -- player's sit position. pos.y = pos.y-0 -- player's sit position.
clicker:setpos(pos) clicker:setpos(pos)
default.player_set_animation(clicker, "sit", 30) default.player_set_animation(clicker, "sit", 30)
@ -512,7 +512,7 @@ homedecor.register("bench_large_2_left", {
}, },
expand = { right="homedecor:bench_large_2_right" }, expand = { right="homedecor:bench_large_2_right" },
on_rightclick = function(pos, node, clicker) -- don't move these functions inside sit() on_rightclick = function(pos, node, clicker) -- don't move these functions inside sit()
sit(pos, node, clicker, pos) sit(pos, node, clicker)
pos.y = pos.y-0 -- player's sit position. pos.y = pos.y-0 -- player's sit position.
clicker:setpos(pos) clicker:setpos(pos)
default.player_set_animation(clicker, "sit", 30) default.player_set_animation(clicker, "sit", 30)