mirror of
https://github.com/Sokomine/cottages.git
synced 2024-12-28 19:50:32 +01:00
Fix getting stuck on benches.
This commit is contained in:
parent
43eabc2f27
commit
b960db85df
@ -401,7 +401,7 @@ cottages.sit_on_bench = function( pos, node, clicker, itemstack, pointed_thing )
|
||||
-- the bench is not centered; prevent the player from sitting on air
|
||||
local p2 = {x=pos.x, y=pos.y, z=pos.z};
|
||||
if not( node ) or node.param2 == 0 then
|
||||
p2.z = p2.z+0.3;
|
||||
p2.z = p2.z+0.2;
|
||||
elseif node.param2 == 1 then
|
||||
p2.x = p2.x+0.3;
|
||||
elseif node.param2 == 2 then
|
||||
|
Loading…
Reference in New Issue
Block a user