fix: remove oil order crash
requestCount is not allowed to be zero. This commit returns early if the amount needed is less than 100.
This commit is contained in:
parent
341e0bf433
commit
722dae30e7
1 changed files with 1 additions and 0 deletions
|
|
@ -21,6 +21,7 @@ local BIOFUEL_PKG = "Biofuel"
|
|||
local order = {
|
||||
oil = function (amt, ticker)
|
||||
local orderCount = math.floor(amt / 100)
|
||||
if orderCount < 1 then return end
|
||||
local request = {
|
||||
tags = {
|
||||
["c:seeds"] = true,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue