Update deprecated function call in mesecons_mvps
This commit is contained in:
parent
6fbefaef09
commit
f23fa236dd
|
@ -290,7 +290,7 @@ function mesecon.mvps_move_objects(pos, dir, nodestack)
|
||||||
end
|
end
|
||||||
|
|
||||||
-- Move objects lying/standing on the stack (before it was pushed - oldstack)
|
-- Move objects lying/standing on the stack (before it was pushed - oldstack)
|
||||||
if tonumber(minetest.setting_get("movement_gravity")) > 0 and dir.y == 0 then
|
if tonumber(minetest.settings:get("movement_gravity")) > 0 and dir.y == 0 then
|
||||||
-- If gravity positive and dir horizontal, push players standing on the stack
|
-- If gravity positive and dir horizontal, push players standing on the stack
|
||||||
for _, n in ipairs(nodestack) do
|
for _, n in ipairs(nodestack) do
|
||||||
local p_above = vector.add(n.pos, {x=0, y=1, z=0})
|
local p_above = vector.add(n.pos, {x=0, y=1, z=0})
|
||||||
|
|
Loading…
Reference in New Issue
Block a user