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:
Tim 2015-03-01 09:59:38 +01:00 committed by Vanessa Ezekowitz
parent c505088fbb
commit ac4f761919

View File

@ -43,8 +43,8 @@ local function wielder_on(data, wielder_pos, wielder_node)
wieldstack = inv:get_stack(wield_inv_name, 1)
end
local dir = minetest.facedir_to_dir(wielder_node.param2)
local under_pos = vector.subtract(wielder_pos, dir)
local above_pos = vector.subtract(under_pos, dir)
local above_pos = vector.subtract(wielder_pos, dir)
local under_pos = vector.subtract(above_pos, dir)
local pitch
local yaw
if dir.z < 0 then