1
0
mirror of https://github.com/sys4-fr/server-nalc.git synced 2025-07-18 15:40:25 +02:00

Updated pipeworks after massive merge

- Changed flowing logic
This commit is contained in:
LeMagnesium
2015-03-02 21:08:04 +01:00
parent 1cf4e252f9
commit b4f294fba2
6 changed files with 387 additions and 242 deletions

View File

@ -43,6 +43,12 @@ 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)
-- 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