forked from MineClone5/MineClone5
Remove double vector addition for piston pull/push - fix on_placenode() coordinates
This commit is contained in:
parent
d1807b5844
commit
f0afebea38
|
@ -248,13 +248,6 @@ function mesecon.mvps_push_or_pull(pos, stackdir, movedir, maximum, all_pull_sti
|
||||||
minetest.get_meta(np):from_table(n.meta)
|
minetest.get_meta(np):from_table(n.meta)
|
||||||
end
|
end
|
||||||
|
|
||||||
for i in ipairs(nodes) do
|
|
||||||
if first_dropper and i >= first_dropper then
|
|
||||||
break
|
|
||||||
end
|
|
||||||
nodes[i].pos = vector.add(nodes[i].pos, movedir)
|
|
||||||
end
|
|
||||||
|
|
||||||
local moved_nodes = {}
|
local moved_nodes = {}
|
||||||
local oldstack = mesecon.tablecopy(nodes)
|
local oldstack = mesecon.tablecopy(nodes)
|
||||||
for i in ipairs(nodes) do
|
for i in ipairs(nodes) do
|
||||||
|
|
Loading…
Reference in New Issue