From ab0016538ed72dc87a473ef3b17215800a3a93de Mon Sep 17 00:00:00 2001 From: Kherae Date: Sun, 24 Nov 2024 15:43:39 -0800 Subject: [PATCH] it should not use math.abs. as the food delta can go...positive. --- interface/scripted/statWindow/extraStatsWindow.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/interface/scripted/statWindow/extraStatsWindow.lua b/interface/scripted/statWindow/extraStatsWindow.lua index 050140034a9..de2f74a23f5 100644 --- a/interface/scripted/statWindow/extraStatsWindow.lua +++ b/interface/scripted/statWindow/extraStatsWindow.lua @@ -48,7 +48,7 @@ function update() elseif type == "food" then local foodVal=status.isResource("food") and status.resourceMax("food") or 0 if foodVal~=0 then - value=math.abs(shorten(foodVal/(value*60.0))) + value=shorten(foodVal/(value*60.0))*-1 if value % 1 == 0 then widget.setText(stat, tostring(math.floor(value))) else