From 24124667a1d6d4cdd7d5831780cf500fb1f461c6 Mon Sep 17 00:00:00 2001 From: Benedikt Ziemons Date: Sat, 1 Jun 2024 04:50:08 +0200 Subject: [PATCH] Fix missing pairs call --- orders.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/orders.lua b/orders.lua index a19d00b..834213b 100644 --- a/orders.lua +++ b/orders.lua @@ -14,7 +14,7 @@ local function fetch(wait_for) if resources ~= nil then local unavailable_count = 0 local deliver_count = 0 - for j, res in resources do + for j, res in pairs(resources) do if not res.available then unavailable_count = unavailable_count + 1 end