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:
parent
aa5f155100
commit
e8ab36a2c9
10
wielder.lua
10
wielder.lua
@ -43,8 +43,14 @@ 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 above_pos = vector.subtract(wielder_pos, dir)
|
||||
local under_pos = vector.subtract(above_pos, dir)
|
||||
-- under/above is currently intentionally left switched
|
||||
-- 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 yaw
|
||||
if dir.z < 0 then
|
||||
|
Loading…
Reference in New Issue
Block a user