mirror of
https://github.com/FalsePattern/FalsePatternLib.git
synced 2026-11-11 19:37:34 +00:00
fix config
This commit is contained in:
1 file changed
+2
-6
@@ -59,7 +59,6 @@ public class ConfigurationManager {
|
||||
* @param event The event.
|
||||
*/
|
||||
@SubscribeEvent
|
||||
@SneakyThrows
|
||||
public void onConfigChanged(ConfigChangedEvent.OnConfigChangedEvent event) {
|
||||
val configClasses = configs.get(event.modID);
|
||||
if (configClasses == null)
|
||||
@@ -67,11 +66,8 @@ public class ConfigurationManager {
|
||||
configClasses.forEach((config) -> {
|
||||
try {
|
||||
processConfig(config);
|
||||
} catch (
|
||||
@SuppressWarnings("CaughtExceptionImmediatelyRethrown")
|
||||
IllegalAccessException | NoSuchMethodException | InvocationTargetException | NoSuchFieldException |
|
||||
ConfigException e) {
|
||||
throw e;
|
||||
} catch (Exception e) {
|
||||
throw new RuntimeException(e);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user