document wielder pointed_thing problems and revert "fix wielder mixing up above and under, which had for example an effect on the deployer trying to place seeds"

This reverts commit 6e2f1fcd635398387a49911a996ccaba65bffdd3.
This commit is contained in:
Tim 2015-03-02 13:30:49 +01:00 committed by Vanessa Ezekowitz
parent aa5f155100
commit e8ab36a2c9

@ -43,8 +43,14 @@ 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 above_pos = vector.subtract(wielder_pos, dir) -- under/above is currently intentionally left switched
local under_pos = vector.subtract(above_pos, dir) -- even though this causes some problems with deployers and e.g. seeds
-- as there are some issues related to nodebreakers otherwise breaking 2 nodes afar.
-- solidity would have to be checked as well,
-- but would open a whole can of worms related to difference in nodebreaker/deployer behavior
-- and the problems of wielders acting on themselves if below is solid
local under_pos = vector.subtract(wielder_pos, dir)
local above_pos = vector.subtract(under_pos, dir)
local pitch local pitch
local yaw local yaw
if dir.z < 0 then if dir.z < 0 then