Skip to content

Commit

Permalink
it should not use math.abs. as the food delta can go...positive.
Browse files Browse the repository at this point in the history
  • Loading branch information
Kherae committed Nov 24, 2024
1 parent ebf43ab commit ab00165
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion interface/scripted/statWindow/extraStatsWindow.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit ab00165

Please sign in to comment.