mirror of
https://github.com/minetest-mods/mesecons.git
synced 2025-03-28 06:50:29 +01:00
rename variable to satisfy linter
This commit is contained in:
parent
c9f3915792
commit
5d58293084
@ -87,8 +87,8 @@ local piston_on = function(pos, node)
|
|||||||
local behind_pos = vector.subtract(pos, dir)
|
local behind_pos = vector.subtract(pos, dir)
|
||||||
local meta = minetest.get_meta(pos)
|
local meta = minetest.get_meta(pos)
|
||||||
-- NOTE: this gets calculated twice, but fixing this would mean changing the public api.
|
-- NOTE: this gets calculated twice, but fixing this would mean changing the public api.
|
||||||
local stack = mesecon.mvps_get_stack(pusher_pos, dir, max_push, meta:get_string("owner"))
|
local stack_preview = mesecon.mvps_get_stack(pusher_pos, dir, max_push, meta:get_string("owner"))
|
||||||
for _, n in ipairs(stack or {}) do
|
for _, n in ipairs(stack_preview or {}) do
|
||||||
-- fix issue 645
|
-- fix issue 645
|
||||||
if vector.equals(n.pos, behind_pos) then
|
if vector.equals(n.pos, behind_pos) then
|
||||||
return
|
return
|
||||||
|
Loading…
x
Reference in New Issue
Block a user