Skip to content

Commit

Permalink
[Buff UI] Fix buffs not working when Sorting by Timer/Duration is sel…
Browse files Browse the repository at this point in the history
…ected
  • Loading branch information
GreenComfyTea committed May 12, 2024
1 parent 877a485 commit 7398bab
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions reframework/autorun/MHR_Overlay/UI/Modules/buff_UI.lua
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ function this.sort_buffs(_displayed_buffs, cached_config)
if infinite_buffs_location == "First" then

if left.is_infinite and right.is_infinite then
return left.timer < right.timer;
return left.name < right.name;
elseif left.is_infinite then
return true;
elseif right.is_infinite then
Expand All @@ -217,7 +217,7 @@ function this.sort_buffs(_displayed_buffs, cached_config)
elseif infinite_buffs_location == "Last" then

if left.is_infinite and right.is_infinite then
return left.timer < right.timer;
return left.name < right.name;
elseif left.is_infinite then
return false;
elseif right.is_infinite then
Expand All @@ -236,7 +236,7 @@ function this.sort_buffs(_displayed_buffs, cached_config)
if infinite_buffs_location == "First" then

if left.is_infinite and right.is_infinite then
return left.timer > right.timer;
return left.name > right.name;
elseif left.is_infinite then
return false;
elseif right.is_infinite then
Expand All @@ -248,7 +248,7 @@ function this.sort_buffs(_displayed_buffs, cached_config)
elseif infinite_buffs_location == "Last" then

if left.is_infinite and right.is_infinite then
return left.timer > right.timer;
return left.name > right.name;
elseif left.is_infinite then
return true;
elseif right.is_infinite then
Expand All @@ -269,7 +269,7 @@ function this.sort_buffs(_displayed_buffs, cached_config)
if infinite_buffs_location == "First" then

if left.is_infinite and right.is_infinite then
return left.duration < right.duration;
return left.name < right.name;
elseif left.is_infinite then
return true;
elseif right.is_infinite then
Expand All @@ -281,7 +281,7 @@ function this.sort_buffs(_displayed_buffs, cached_config)
elseif infinite_buffs_location == "Last" then

if left.is_infinite and right.is_infinite then
return left.duration < right.duration;
return left.name < right.name;
elseif left.is_infinite then
return false;
elseif right.is_infinite then
Expand All @@ -300,7 +300,7 @@ function this.sort_buffs(_displayed_buffs, cached_config)
if infinite_buffs_location == "First" then

if left.is_infinite and right.is_infinite then
return left.duration > right.duration;
return left.name > right.name;
elseif left.is_infinite then
return false;
elseif right.is_infinite then
Expand All @@ -312,7 +312,7 @@ function this.sort_buffs(_displayed_buffs, cached_config)
elseif infinite_buffs_location == "Last" then

if left.is_infinite and right.is_infinite then
return left.duration > right.duration;
return left.name > right.name;
elseif left.is_infinite then
return true;
elseif right.is_infinite then
Expand Down

0 comments on commit 7398bab

Please sign in to comment.