mirror of
https://github.com/HibiscusMC/HMCCosmetics.git
synced 2025-12-30 04:19:28 +00:00
fix: fixes #88 throwing runtime exception on reload
This commit is contained in:
@@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user