@@ -94,6 +94,7 @@ public class CoflModClient implements ClientModInitializer {
9494 private static boolean keyPressed = false ;
9595 private static int counter = 0 ;
9696 private static final KeyBinding .Category SKYCOFL_CATEGORY = KeyBinding .Category .create (Identifier .of ("coflnet" , "skycofl" ));
97+ private static final KeyBinding .Category SKYCOFL_UNCHANGEABLE_CATEGORY = KeyBinding .Category .create (Identifier .of ("coflnet" , "skycofl_unchangeable" ));
9798 public static KeyBinding bestflipsKeyBinding ;
9899 public static KeyBinding uploadItemKeyBinding ;
99100 public static List <KeyBinding > additionalKeyBindings = new ArrayList <KeyBinding >();
@@ -1250,7 +1251,6 @@ private static void clickSlotInContainer(GenericContainerScreen gcs, int slotId)
12501251 private boolean checkVersionCompability () {
12511252 try {
12521253 String v = net .minecraft .SharedConstants .getGameVersion ().id ();
1253- System .out .println ("Detected Minecraft version:" + v );
12541254 boolean b = v .compareTo (targetVersion ) == 0 ;
12551255
12561256 return b ;
@@ -1290,8 +1290,7 @@ public static void setHotKeys(HotkeyRegister[] keys) {
12901290 int keyIndex = getKeyIndex (keys [i ].DefaultKey .toUpperCase ());
12911291
12921292 HotkeyRegister hotkey = keys [i ];
1293- KeyBinding .Category unchangeableCategory = KeyBinding .Category .create (Identifier .of ("coflnet" , "skycofl_unchangeable" ));
1294- KeyBinding keyBinding = new KeyBinding (hotkey .Name , keyIndex , unchangeableCategory );
1293+ KeyBinding keyBinding = new KeyBinding (hotkey .Name , keyIndex , SKYCOFL_UNCHANGEABLE_CATEGORY );
12951294 additionalKeyBindings .add (keyBinding );
12961295 keybindingsToHotkeys .put (keyBinding , hotkey );
12971296 System .out .println ("Registered Key: " + hotkey .Name + " with key " + hotkey .DefaultKey .toUpperCase () + " (" +keyIndex +")" );
0 commit comments