diff options
author | Wyvest <45589059+Wyvest@users.noreply.github.com> | 2022-06-28 17:29:26 +0700 |
---|---|---|
committer | Wyvest <45589059+Wyvest@users.noreply.github.com> | 2022-06-28 17:29:26 +0700 |
commit | e85b11665a92e8a6bffb11b76b45ee3c97138bd2 (patch) | |
tree | 1e85d3673d6511df53b96deb8fc23989cd304722 /src/main/java/cc/polyfrost/oneconfig/config/compatibility | |
parent | 61861be3663dc05883c387070c81eae9154444ef (diff) | |
download | OneConfig-e85b11665a92e8a6bffb11b76b45ee3c97138bd2.tar.gz OneConfig-e85b11665a92e8a6bffb11b76b45ee3c97138bd2.tar.bz2 OneConfig-e85b11665a92e8a6bffb11b76b45ee3c97138bd2.zip |
revert funny diamond hud stuff
add ExcludeType again
fix INSTANCE field stuff
Diffstat (limited to 'src/main/java/cc/polyfrost/oneconfig/config/compatibility')
-rw-r--r-- | src/main/java/cc/polyfrost/oneconfig/config/compatibility/vigilance/VigilanceConfig.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main/java/cc/polyfrost/oneconfig/config/compatibility/vigilance/VigilanceConfig.java b/src/main/java/cc/polyfrost/oneconfig/config/compatibility/vigilance/VigilanceConfig.java index ee3b97f..bfad00c 100644 --- a/src/main/java/cc/polyfrost/oneconfig/config/compatibility/vigilance/VigilanceConfig.java +++ b/src/main/java/cc/polyfrost/oneconfig/config/compatibility/vigilance/VigilanceConfig.java @@ -114,8 +114,8 @@ public class VigilanceConfig extends Config { try { Field field = valueBackedPropertyValue.getClass().getDeclaredField("obj"); field.setAccessible(true); - return (Field) field.get(valueBackedPropertyValue); - } catch (IllegalAccessException | NoSuchFieldException e) { + return field; + } catch (NoSuchFieldException e) { throw new RuntimeException(e); } } else if (data.getValue() instanceof KPropertyBackedPropertyValue) { |