Skip to content

Commit 85b3cb1

Browse files
committed
fix config
1 parent 860f106 commit 85b3cb1

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

src/main/java/com/falsepattern/lib/config/ConfigurationManager.java

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -59,19 +59,15 @@ public static void init() {
5959
* @param event The event.
6060
*/
6161
@SubscribeEvent
62-
@SneakyThrows
6362
public void onConfigChanged(ConfigChangedEvent.OnConfigChangedEvent event) {
6463
val configClasses = configs.get(event.modID);
6564
if (configClasses == null)
6665
return;
6766
configClasses.forEach((config) -> {
6867
try {
6968
processConfig(config);
70-
} catch (
71-
@SuppressWarnings("CaughtExceptionImmediatelyRethrown")
72-
IllegalAccessException | NoSuchMethodException | InvocationTargetException | NoSuchFieldException |
73-
ConfigException e) {
74-
throw e;
69+
} catch (Exception e) {
70+
throw new RuntimeException(e);
7571
}
7672
});
7773
}

0 commit comments

Comments
 (0)