We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 860f106 commit 85b3cb1Copy full SHA for 85b3cb1
src/main/java/com/falsepattern/lib/config/ConfigurationManager.java
@@ -59,19 +59,15 @@ public static void init() {
59
* @param event The event.
60
*/
61
@SubscribeEvent
62
- @SneakyThrows
63
public void onConfigChanged(ConfigChangedEvent.OnConfigChangedEvent event) {
64
val configClasses = configs.get(event.modID);
65
if (configClasses == null)
66
return;
67
configClasses.forEach((config) -> {
68
try {
69
processConfig(config);
70
- } catch (
71
- @SuppressWarnings("CaughtExceptionImmediatelyRethrown")
72
- IllegalAccessException | NoSuchMethodException | InvocationTargetException | NoSuchFieldException |
73
- ConfigException e) {
74
- throw e;
+ } catch (Exception e) {
+ throw new RuntimeException(e);
75
}
76
});
77
0 commit comments