mirror of
https://github.com/minetest-mods/mesecons.git
synced 2025-03-21 03:20:38 +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 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
|
||||
|
Loading…
x
Reference in New Issue
Block a user