aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/cc
diff options
context:
space:
mode:
authorDeDiamondPro <67508414+DeDiamondPro@users.noreply.github.com>2022-06-10 20:59:18 +0200
committerDeDiamondPro <67508414+DeDiamondPro@users.noreply.github.com>2022-06-10 20:59:18 +0200
commit7abfe87ea8fcda67ce4bb6089b61f0efd82bec47 (patch)
treeb4de85282e39e53d60cef2aac702945165a34a46 /src/main/java/cc
parent9b343def8a05c5730c0b49ce1ff7004d7e0e2511 (diff)
downloadOneConfig-7abfe87ea8fcda67ce4bb6089b61f0efd82bec47.tar.gz
OneConfig-7abfe87ea8fcda67ce4bb6089b61f0efd82bec47.tar.bz2
OneConfig-7abfe87ea8fcda67ce4bb6089b61f0efd82bec47.zip
more error catching
Diffstat (limited to 'src/main/java/cc')
-rw-r--r--src/main/java/cc/polyfrost/oneconfig/config/core/ConfigUtils.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main/java/cc/polyfrost/oneconfig/config/core/ConfigUtils.java b/src/main/java/cc/polyfrost/oneconfig/config/core/ConfigUtils.java
index 5327dad..93069c5 100644
--- a/src/main/java/cc/polyfrost/oneconfig/config/core/ConfigUtils.java
+++ b/src/main/java/cc/polyfrost/oneconfig/config/core/ConfigUtils.java
@@ -83,7 +83,7 @@ public class ConfigUtils {
try {
field.setAccessible(true);
return field.get(parent);
- } catch (IllegalAccessException ignored) {
+ } catch (Exception ignored) {
return null;
}
}
@@ -92,7 +92,7 @@ public class ConfigUtils {
try {
field.setAccessible(true);
field.set(parent, value);
- } catch (IllegalAccessException ignored) {
+ } catch (Exception ignored) {
}
}
}