From 5be77fa63dcdba88e1418eeea50d81fa462a52fe Mon Sep 17 00:00:00 2001 From: Kelly Kinkade Date: Fri, 16 Dec 2016 08:09:53 -0600 Subject: [PATCH] stockflow: Fix "integer expected" problem in stockflow --- plugins/lua/stockflow.lua | 1 + 1 file changed, 1 insertion(+) diff --git a/plugins/lua/stockflow.lua b/plugins/lua/stockflow.lua index 6027bb455..510718ff1 100644 --- a/plugins/lua/stockflow.lua +++ b/plugins/lua/stockflow.lua @@ -1137,6 +1137,7 @@ function check_stockpiles(verbose) local filled, empty = check_pile(spec.stockpile, verbose) local amount = trigger.filled and filled or empty amount = (amount - (amount % trigger.divisor)) / trigger.divisor + amount = math.floor(amount) result[reaction] = (result[reaction] or 0) + amount end end