Fix players being dragged along the side of stacks

This commit is contained in:
cheapie 2019-08-31 02:12:05 -05:00
parent 1bf862f932
commit d52cd6bd91
1 changed files with 2 additions and 2 deletions

View File

@ -225,8 +225,8 @@ function mesecon.mvps_move_objects(pos, dir, nodestack, movefactor)
for k, v in pairs(pos) do
local edge1, edge2
if k ~= dir_k then
edge1 = v - 0.51 -- More than 0.5 to move objects near to the stack.
edge2 = v + 0.51
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.499
else
edge1 = v - 0.5 * dir_l
edge2 = v + (#nodestack + 0.5 * movefactor) * dir_l