diff options
author | Tim <t4im@users.noreply.github.com> | 2015-03-02 13:30:49 +0100 |
---|---|---|
committer | Vanessa Ezekowitz <vanessaezekowitz@gmail.com> | 2015-03-04 22:17:36 -0500 |
commit | e8ab36a2c940227b7c7fbc33057eb0156ac3d190 (patch) | |
tree | 6e31bf69c64a81b3ae7b736d7c6e28664c74c0dc | |
parent | aa5f155100fb30e5711d72f3ea57d53a5d92c55a (diff) | |
download | pipeworks-e8ab36a2c940227b7c7fbc33057eb0156ac3d190.tar pipeworks-e8ab36a2c940227b7c7fbc33057eb0156ac3d190.tar.gz pipeworks-e8ab36a2c940227b7c7fbc33057eb0156ac3d190.tar.bz2 pipeworks-e8ab36a2c940227b7c7fbc33057eb0156ac3d190.tar.xz pipeworks-e8ab36a2c940227b7c7fbc33057eb0156ac3d190.zip |
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.
-rw-r--r-- | wielder.lua | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/wielder.lua b/wielder.lua index 8f71cd7..88f8e67 100644 --- a/wielder.lua +++ b/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 |