From 0fa2fcef762c280124ed7d9a8f5f4b98c70184b8 Mon Sep 17 00:00:00 2001 From: Spencer <75862693+TacoMonkey11@users.noreply.github.com> Date: Thu, 30 Mar 2023 17:37:11 -0400 Subject: [PATCH] Follow Checkstyle --- .../com/github/reviversmc/toomanybinds/TooManyBinds.java | 3 +-- .../toomanybinds/autocompletion/BindSuggestion.java | 5 ++++- .../autocompletion/VanillaKeybindSuggestions.java | 1 - 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/src/main/java/com/github/reviversmc/toomanybinds/TooManyBinds.java b/src/main/java/com/github/reviversmc/toomanybinds/TooManyBinds.java index a2e5d56..b84b303 100644 --- a/src/main/java/com/github/reviversmc/toomanybinds/TooManyBinds.java +++ b/src/main/java/com/github/reviversmc/toomanybinds/TooManyBinds.java @@ -6,7 +6,6 @@ import net.fabricmc.fabric.api.client.event.lifecycle.v1.ClientLifecycleEvents; import net.fabricmc.fabric.api.client.event.lifecycle.v1.ClientTickEvents; import net.fabricmc.fabric.api.client.keybinding.v1.KeyBindingHelper; -import net.minecraft.client.MinecraftClient; import net.minecraft.client.option.KeyBinding; import net.minecraft.client.util.InputUtil; import org.lwjgl.glfw.GLFW; @@ -14,7 +13,7 @@ import com.github.reviversmc.toomanybinds.autocompletion.LauncherCompletion; import com.github.reviversmc.toomanybinds.autocompletion.VanillaKeybindSuggestions; -public class TooManyBinds implements ModInitializer { +public class TooManyBinds implements ModInitializer { public static ModConfig config; public static KeyBinding launcherKey; public static KeyBinding favoriteKey; diff --git a/src/main/java/com/github/reviversmc/toomanybinds/autocompletion/BindSuggestion.java b/src/main/java/com/github/reviversmc/toomanybinds/autocompletion/BindSuggestion.java index 6f1d831..ca44b37 100644 --- a/src/main/java/com/github/reviversmc/toomanybinds/autocompletion/BindSuggestion.java +++ b/src/main/java/com/github/reviversmc/toomanybinds/autocompletion/BindSuggestion.java @@ -1,6 +1,5 @@ package com.github.reviversmc.toomanybinds.autocompletion; - import net.minecraft.client.MinecraftClient; import net.minecraft.client.option.GameOptions; import net.minecraft.client.option.KeyBinding; @@ -54,13 +53,17 @@ public void execute() { bind.setPressed(false); // Amecs compat + /* + if (FabricLoader.getInstance().isModLoaded("amecsapi")) { AmecsIntegration.priorityPressIfApplicable(bind); } + */ } } + public String getId() { return bind.getTranslationKey(); } diff --git a/src/main/java/com/github/reviversmc/toomanybinds/autocompletion/VanillaKeybindSuggestions.java b/src/main/java/com/github/reviversmc/toomanybinds/autocompletion/VanillaKeybindSuggestions.java index 0f715c5..7def91c 100644 --- a/src/main/java/com/github/reviversmc/toomanybinds/autocompletion/VanillaKeybindSuggestions.java +++ b/src/main/java/com/github/reviversmc/toomanybinds/autocompletion/VanillaKeybindSuggestions.java @@ -6,7 +6,6 @@ import java.util.Set; import net.minecraft.client.MinecraftClient; -import net.minecraft.client.option.GameOptions; import net.minecraft.client.option.KeyBinding; import com.github.reviversmc.toomanybinds.TooManyBinds;