mirror of
https://github.com/minetest-mods/mesecons.git
synced 2025-01-27 00:30:19 +01:00
Fix players being dragged along the side of stacks
This commit is contained in:
parent
1bf862f932
commit
d52cd6bd91
@ -225,8 +225,8 @@ function mesecon.mvps_move_objects(pos, dir, nodestack, movefactor)
|
|||||||
for k, v in pairs(pos) do
|
for k, v in pairs(pos) do
|
||||||
local edge1, edge2
|
local edge1, edge2
|
||||||
if k ~= dir_k then
|
if k ~= dir_k then
|
||||||
edge1 = v - 0.51 -- More than 0.5 to move objects near to the stack.
|
edge1 = v - 0.499 -- Slightly less than 0.5 so that players next to the stack don't get dragged with it
|
||||||
edge2 = v + 0.51
|
edge2 = v + 0.499
|
||||||
else
|
else
|
||||||
edge1 = v - 0.5 * dir_l
|
edge1 = v - 0.5 * dir_l
|
||||||
edge2 = v + (#nodestack + 0.5 * movefactor) * dir_l
|
edge2 = v + (#nodestack + 0.5 * movefactor) * dir_l
|
||||||
|
Loading…
Reference in New Issue
Block a user