Skip to content

Commit bd089ae

Browse files
committed
Fix an issue with opening a mod already on the recent list
1 parent 2e111b1 commit bd089ae

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

common/src/main/java/dev/terminalmc/modlistmemory/ModListMemory.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ public static void onConfigSaved(Config config) {
5353
}
5454

5555
public static void onModOpened(String modId) {
56+
recentMods.remove(modId);
5657
recentMods.addLast(modId);
5758
while (recentMods.size() > options().memorySize) {
5859
recentMods.removeFirst();

0 commit comments

Comments
 (0)