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:
Emerson Rosen-Jones 2026-01-01 14:40:21 -05:00
parent 341e0bf433
commit 722dae30e7

View file

@ -21,6 +21,7 @@ local BIOFUEL_PKG = "Biofuel"
local order = { local order = {
oil = function (amt, ticker) oil = function (amt, ticker)
local orderCount = math.floor(amt / 100) local orderCount = math.floor(amt / 100)
if orderCount < 1 then return end
local request = { local request = {
tags = { tags = {
["c:seeds"] = true, ["c:seeds"] = true,