forked from mtcontrib/pipeworks
fix wielder mixing up above and under, which had for example an effect on the deployer trying to place seeds
This commit is contained in:
parent
c505088fbb
commit
ac4f761919
@ -43,8 +43,8 @@ local function wielder_on(data, wielder_pos, wielder_node)
|
|||||||
wieldstack = inv:get_stack(wield_inv_name, 1)
|
wieldstack = inv:get_stack(wield_inv_name, 1)
|
||||||
end
|
end
|
||||||
local dir = minetest.facedir_to_dir(wielder_node.param2)
|
local dir = minetest.facedir_to_dir(wielder_node.param2)
|
||||||
local under_pos = vector.subtract(wielder_pos, dir)
|
local above_pos = vector.subtract(wielder_pos, dir)
|
||||||
local above_pos = vector.subtract(under_pos, dir)
|
local under_pos = vector.subtract(above_pos, dir)
|
||||||
local pitch
|
local pitch
|
||||||
local yaw
|
local yaw
|
||||||
if dir.z < 0 then
|
if dir.z < 0 then
|
||||||
|
Loading…
Reference in New Issue
Block a user