diff --git a/mesecons_pressureplates/init.lua b/mesecons_pressureplates/init.lua index 998223f..6c22db2 100644 --- a/mesecons_pressureplates/init.lua +++ b/mesecons_pressureplates/init.lua @@ -22,7 +22,7 @@ local function pp_on_timer(pos) minetest.set_node(pos, {name = basename .. "_off"}) mesecon.receptor_off(pos, mesecon.rules.pplate) elseif node.name == basename .. "_off" then - for _, obj in pairs(objs) do + for k, obj in pairs(objs) do local objpos = obj:get_pos() if objpos.y > pos.y-1 and objpos.y < pos.y then minetest.set_node(pos, {name = basename .. "_on"})