@@ -29,7 +29,7 @@ public class ModListMemory {
2929 public static final String MOD_ID = "modlistmemory" ;
3030 public static final String MOD_NAME = "ModListMemory" ;
3131 public static final ModLogger LOG = new ModLogger (MOD_NAME );
32- public static final int BADGE_TEXT = 0xCACACA ;
32+ public static final int BADGE_TEXT = 0xFFCACACA ;
3333 public static final int PINNED_BADGE_OUTLINE = 0xFFb36b19 ;
3434 public static final int PINNED_BADGE_FILL = 0xFF4d2e0b ;
3535 public static final int RECENT_BADGE_OUTLINE = 0xFF1d9fb3 ;
@@ -40,7 +40,7 @@ public class ModListMemory {
4040
4141 public static void init () {
4242 Config .getAndSave ();
43-
43+
4444 if (!options ().persistOnRestart ) {
4545 options ().recentMods .clear ();
4646 options ().scrollAmount = Config .Options .scrollAmountDefault ;
@@ -52,7 +52,7 @@ public static void onClientShutdown(Minecraft mc) {
5252 Config .save ();
5353 }
5454 }
55-
55+
5656 public static void onConfigSaved (Config config ) {
5757 pinnedBadgeText = Component .literal (config .options .pinnedText ).getVisualOrderText ();
5858 recentBadgeText = Component .literal (config .options .recentText ).getVisualOrderText ();
@@ -70,7 +70,7 @@ public static void onModOpened(String modId) {
7070 Config .save ();
7171 }
7272 }
73-
73+
7474 public static boolean onModClicked (String modId ) {
7575 if (ModListMemory .hasKeyDown (options ().pinKey )) {
7676 // Pin, or move to the top of the pin list
@@ -84,8 +84,8 @@ public static boolean onModClicked(String modId) {
8484 Config .save ();
8585 }
8686 return true ;
87- }
88- else if (ModListMemory .hasKeyDown (options ().unpinKey )
87+ }
88+ else if (ModListMemory .hasKeyDown (options ().unpinKey )
8989 && options ().pinnedMods .contains (modId )) {
9090 // Unpin
9191 options ().pinnedMods .remove (modId );
@@ -96,7 +96,7 @@ && options().pinnedMods.contains(modId)) {
9696 }
9797 return false ;
9898 }
99-
99+
100100 public static boolean hasKeyDown (Config .Key key ) {
101101 return switch (key ) {
102102 case CONTROL -> Screen .hasControlDown ();
@@ -105,4 +105,4 @@ public static boolean hasKeyDown(Config.Key key) {
105105 case NONE -> false ;
106106 };
107107 }
108- }
108+ }
0 commit comments