From 7b2e767cacee5d0c7377ffb3879dfc509fd62f70 Mon Sep 17 00:00:00 2001 From: LoJoSho Date: Sat, 1 Apr 2023 22:26:52 -0500 Subject: [PATCH] fix: fixes #88 throwing runtime exception on reload --- .../hooks/placeholders/HookPlaceholderAPI.java | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/common/src/main/java/com/hibiscusmc/hmccosmetics/hooks/placeholders/HookPlaceholderAPI.java b/common/src/main/java/com/hibiscusmc/hmccosmetics/hooks/placeholders/HookPlaceholderAPI.java index 6c92ae26..034b462d 100644 --- a/common/src/main/java/com/hibiscusmc/hmccosmetics/hooks/placeholders/HookPlaceholderAPI.java +++ b/common/src/main/java/com/hibiscusmc/hmccosmetics/hooks/placeholders/HookPlaceholderAPI.java @@ -11,11 +11,10 @@ public class HookPlaceholderAPI extends Hook { } /** - * @throws RuntimeException If PlaceholderAPI fails to register + * Registers HMCCosmetics Placeholder Expansion */ @Override - public void load() throws RuntimeException { - if (!new HMCPlaceholderExpansion().register()) - throw new RuntimeException("Failed to register PlaceholderExpansion"); + public void load() { + new HMCPlaceholderExpansion().register(); } }