Skip to content

Commit

Permalink
always update button location, even if they are not in list
Browse files Browse the repository at this point in the history
  • Loading branch information
DeDiamondPro committed Oct 5, 2024
1 parent dcdd00d commit f144623
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -101,8 +101,8 @@ private void handleInit_Resourcify() {
@Unique
private <T> void updateButtons_Resourcify(List<T> list) {
for (ImageButton button : resourcifyCustomButtons) {
button.updateLocation((Screen) (Object) this);
if (list.contains(button)) {
button.updateLocation((Screen) (Object) this);
continue;
}
list.add((T) button);
Expand Down

0 comments on commit f144623

Please sign in to comment.