From 7d90865648433497c8f174963ad9190b13fd3a38 Mon Sep 17 00:00:00 2001 From: GitHub GTNH Actions <> Date: Tue, 7 Jan 2025 17:49:28 +0000 Subject: [PATCH] spotlessApply --- .../java/com/gtnewhorizon/gtnhlib/eventbus/AutoEventBus.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/main/java/com/gtnewhorizon/gtnhlib/eventbus/AutoEventBus.java b/src/main/java/com/gtnewhorizon/gtnhlib/eventbus/AutoEventBus.java index a80652e..1160ac9 100644 --- a/src/main/java/com/gtnewhorizon/gtnhlib/eventbus/AutoEventBus.java +++ b/src/main/java/com/gtnewhorizon/gtnhlib/eventbus/AutoEventBus.java @@ -122,8 +122,7 @@ private static void register(ModContainer classOwner, Class target, ObjectSet for (MethodInfo method : methods) { try { if (method.getOptionalMod() != null) { - if (!optionalMods - .computeIfAbsent(method.getOptionalMod(), Loader::isModLoaded)) { + if (!optionalMods.computeIfAbsent(method.getOptionalMod(), Loader::isModLoaded)) { continue; } }