stockflow: Fix "integer expected" problem in stockflow

develop
Kelly Kinkade 2016-12-16 08:09:53 -06:00
parent a5eb5d2502
commit 5be77fa63d
1 changed files with 1 additions and 0 deletions

@ -1137,6 +1137,7 @@ function check_stockpiles(verbose)
local filled, empty = check_pile(spec.stockpile, verbose) local filled, empty = check_pile(spec.stockpile, verbose)
local amount = trigger.filled and filled or empty local amount = trigger.filled and filled or empty
amount = (amount - (amount % trigger.divisor)) / trigger.divisor amount = (amount - (amount % trigger.divisor)) / trigger.divisor
amount = math.floor(amount)
result[reaction] = (result[reaction] or 0) + amount result[reaction] = (result[reaction] or 0) + amount
end end
end end