OkZoomerCompat, MidnightControlsCompat: Added some more comments in the code.

This commit is contained in:
Karen/あけみ
2022-06-08 20:45:50 -07:00
parent b1334a0455
commit 913e79fe5b
2 changed files with 3 additions and 1 deletions

View File

@@ -39,6 +39,8 @@ public class MidnightControlsCompat {
* @param mod the mod instance
*/
public static void init(@NotNull MidnightControlsClient mod) {
// "okzoomer" is the mod ID used by Fabric-compatible versions of Ok Zoomer. (5.0.0-beta.6 and below.)
// "ok_zoomer" is the mod ID used by Quilt-exclusive versions of Ok Zoomer. (5.0.0-beta.7 and above.)
if (FabricLoader.getInstance().isModLoaded("okzoomer") || FabricLoader.getInstance().isModLoaded("ok_zoomer")) {
mod.log("Adding Ok Zoomer compatibility...");
HANDLERS.add(new OkZoomerCompat());

View File

@@ -94,7 +94,7 @@ public class OkZoomerCompat implements CompatHandler {
okZoomerAreExtraKeyBindsEnabledMethodNameString = "areExtraKeyBindsEnabled";
} else {
// If both of the above checks fail, then the version of the Ok Zoomer API that the user is trying to use is too new.
// If all of the above checks fail, then the version of the Ok Zoomer API that the user is trying to use is too new.
MidnightControlsClient.get().warn("The version of Ok Zoomer that you are currently using is too new, and is not yet supported by MidnightControls!");
return;
}