Skip to content

Commit

Permalink
Fix gui.lua
Browse files Browse the repository at this point in the history
  • Loading branch information
Mmtrx committed Feb 17, 2023
1 parent 6c470fb commit 0a5774e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/gui.lua
Original file line number Diff line number Diff line change
Expand Up @@ -641,7 +641,7 @@ function updateFarmersBox(frCon, field, npc)

local delivered = MathUtil.round(depo / 100) * 100
-- don't show negative togos:
local togo = math.max(MathUtil.round((c.deliver - depo) / 100)*100), 0)
local togo = math.max(MathUtil.round((c.deliver - depo) / 100)*100, 0)
text4a, text4b = g_i18n:getText("SC_delivered"), g_i18n:getText("SC_togo")
local val4a, val4b = g_i18n:formatVolume(delivered), g_i18n:formatVolume(togo)
if cat == SC.BALING then
Expand Down

0 comments on commit 0a5774e

Please sign in to comment.