mirror of
https://github.com/TeamMidnightDust/MidnightControls.git
synced 2025-12-13 23:25:10 +01:00
Update and fix Ok Zoomer compatibility (#68)
This commit is contained in:
@@ -39,11 +39,11 @@ public class LambdaControlsCompat {
|
||||
* @param mod the mod instance
|
||||
*/
|
||||
public static void init(@NotNull LambdaControlsClient mod) {
|
||||
/*if (FabricLoader.getInstance().isModLoaded("okzoomer")) {
|
||||
if (FabricLoader.getInstance().isModLoaded("okzoomer")) {
|
||||
mod.log("Adding okzoomer compatibility...");
|
||||
HANDLERS.add(new OkZoomerCompat());
|
||||
}
|
||||
if (isReiPresent()) {
|
||||
/*if (isReiPresent()) {
|
||||
mod.log("Adding REI compatiblity...");
|
||||
HANDLERS.add(new ReiCompat());
|
||||
}*/
|
||||
|
||||
@@ -10,7 +10,10 @@
|
||||
package dev.lambdaurora.lambdacontrols.client.compat;
|
||||
|
||||
import dev.lambdaurora.lambdacontrols.client.LambdaControlsClient;
|
||||
import dev.lambdaurora.lambdacontrols.client.controller.ButtonBinding;
|
||||
import io.github.ennuil.okzoomer.keybinds.ZoomKeybinds;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
import org.lwjgl.glfw.GLFW;
|
||||
|
||||
/**
|
||||
* Represents a compatibility handler for OkZoomer.
|
||||
@@ -22,7 +25,7 @@ import org.jetbrains.annotations.NotNull;
|
||||
public class OkZoomerCompat implements CompatHandler {
|
||||
@Override
|
||||
public void handle(@NotNull LambdaControlsClient mod) {
|
||||
/*new ButtonBinding.Builder("zoom")
|
||||
new ButtonBinding.Builder("zoom")
|
||||
.buttons(GLFW.GLFW_GAMEPAD_BUTTON_DPAD_UP, GLFW.GLFW_GAMEPAD_BUTTON_X)
|
||||
.onlyInGame()
|
||||
.cooldown(true)
|
||||
@@ -51,6 +54,6 @@ public class OkZoomerCompat implements CompatHandler {
|
||||
.category(ButtonBinding.MISC_CATEGORY)
|
||||
.linkKeybind(ZoomKeybinds.resetZoomKey)
|
||||
.register();
|
||||
}*/
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user