Merge pull request #1046 from ab9rf/alpha3-stockflow

stockflow: Fix "integer expected" problem in stockflow
develop
Lethosor 2016-12-16 14:09:59 -05:00 committed by GitHub
commit 05f5b6bcf2
1 changed files with 1 additions and 1 deletions

@ -1136,7 +1136,7 @@ function check_stockpiles(verbose)
local reaction = spec.entry.ints[entry_ints.order_number]
local filled, empty = check_pile(spec.stockpile, verbose)
local amount = trigger.filled and filled or empty
amount = (amount - (amount % trigger.divisor)) / trigger.divisor
amount = (amount - (amount % trigger.divisor)) // trigger.divisor
result[reaction] = (result[reaction] or 0) + amount
end
end