rename variable to satisfy linter

This commit is contained in:
binarycat 2023-12-19 15:05:46 -05:00
parent c9f3915792
commit 5d58293084
1 changed files with 2 additions and 2 deletions

View File

@ -87,8 +87,8 @@ local piston_on = function(pos, node)
local behind_pos = vector.subtract(pos, dir)
local meta = minetest.get_meta(pos)
-- 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"))
for _, n in ipairs(stack or {}) do
local stack_preview = mesecon.mvps_get_stack(pusher_pos, dir, max_push, meta:get_string("owner"))
for _, n in ipairs(stack_preview or {}) do
-- fix issue 645
if vector.equals(n.pos, behind_pos) then
return