9
0
mirror of https://github.com/HibiscusMC/HMCCosmetics.git synced 2025-12-30 20:39:13 +00:00

fix: fixes #88 throwing runtime exception on reload

This commit is contained in:
LoJoSho
2023-04-01 22:26:52 -05:00
parent 4bdd000917
commit 7b2e767cac

View File

@@ -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();
}
}