From 8b944b8e2966ba073d7eb96a38499655cada1f0e Mon Sep 17 00:00:00 2001 From: Boy Date: Mon, 14 Aug 2023 15:26:03 +0200 Subject: [PATCH] fix geary --- build.gradle.kts | 2 +- .../com/hibiscusmc/hmccosmetics/hooks/items/HookGeary.java | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/build.gradle.kts b/build.gradle.kts index 2d86783d..53a1cf6c 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -75,7 +75,7 @@ allprojects { compileOnly("com.ticxo:modelengine:R3.0.1") compileOnly("com.github.oraxen:oraxen:1.160.0") compileOnly("com.github.LoneDev6:API-ItemsAdder:3.2.5") - compileOnly("com.mineinabyss:geary-papermc:0.24-SNAPSHOT") + compileOnly("com.mineinabyss:geary-papermc:0.24.1") compileOnly("com.sk89q.worldguard:worldguard-bukkit:7.1.0-SNAPSHOT") compileOnly("it.unimi.dsi:fastutil:8.5.11") compileOnly("com.github.LeonMangler:SuperVanish:6.2.17") diff --git a/common/src/main/java/com/hibiscusmc/hmccosmetics/hooks/items/HookGeary.java b/common/src/main/java/com/hibiscusmc/hmccosmetics/hooks/items/HookGeary.java index 48096745..0cd26e34 100644 --- a/common/src/main/java/com/hibiscusmc/hmccosmetics/hooks/items/HookGeary.java +++ b/common/src/main/java/com/hibiscusmc/hmccosmetics/hooks/items/HookGeary.java @@ -13,7 +13,6 @@ import org.jetbrains.annotations.NotNull; /** * A hook that integrates the plugin {@link com.mineinabyss.geary.papermc.GearyPlugin Geary} to provide custom items */ -@SuppressWarnings("SpellCheckingInspection") public class HookGeary extends Hook { private boolean enabled = false; @@ -24,7 +23,7 @@ public class HookGeary extends Hook { @Override public void load() { - GearyModuleKt.getGeary().getPipeline().intercept(GearyPhase.ENABLE, () -> { + if (!enabled) GearyModuleKt.getGeary().getPipeline().intercept(GearyPhase.INIT_ENTITIES, () -> { enabled = true; HMCCosmeticsPlugin.setup(); return null;