From 5d582930847e17df38e976348b88f6d597ca9d22 Mon Sep 17 00:00:00 2001 From: binarycat Date: Tue, 19 Dec 2023 15:05:46 -0500 Subject: [PATCH] rename variable to satisfy linter --- mesecons_pistons/init.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mesecons_pistons/init.lua b/mesecons_pistons/init.lua index c6273a5..d38f2fa 100644 --- a/mesecons_pistons/init.lua +++ b/mesecons_pistons/init.lua @@ -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