Yet another whoops
authorOlav Bakke Svendsen <mail@olavbs.no>
Wed, 11 Oct 2023 21:30:22 +0000 (23:30 +0200)
committerOlav Bakke Svendsen <mail@olavbs.no>
Wed, 11 Oct 2023 21:30:22 +0000 (23:30 +0200)
steam/temporary-coal-feeder.lua

index baa78ff6460788a1451a9c63f5012878ebfd4e71..6f33ff16495ed8f48e403d37885f8d71bf57e128 100644 (file)
@@ -30,7 +30,7 @@ end
 local feed = function(stock)
   local stock = stock
   for deployer_addr,deployer in pairs(deployers) do
-    if refill_when(d.getItemDetail(1).count) then
+    if refill_when(deployer.getItemDetail(1).count) then
       local f = function() return false, "No coal available" end
       for barrel_addr,count in pairs(stock) do
         if count >= refill_amt then