aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/cc/polyfrost/oneconfig/config/gson/NonProfileSpecificExclusionStrategy.java
diff options
context:
space:
mode:
authorWyvest <45589059+Wyvest@users.noreply.github.com>2022-06-28 18:06:27 +0700
committerWyvest <45589059+Wyvest@users.noreply.github.com>2022-06-28 18:06:27 +0700
commit324af98fa58a44ea64b3f841e6f73b827e80922d (patch)
treebde7bfab927b92fb1c1da5bf19d78740fae3aeb2 /src/main/java/cc/polyfrost/oneconfig/config/gson/NonProfileSpecificExclusionStrategy.java
parente4922cc5f965b5d1c467d1cc310ad06629b5863a (diff)
downloadOneConfig-324af98fa58a44ea64b3f841e6f73b827e80922d.tar.gz
OneConfig-324af98fa58a44ea64b3f841e6f73b827e80922d.tar.bz2
OneConfig-324af98fa58a44ea64b3f841e6f73b827e80922d.zip
I am Not About To Jump Off A Bridge !!!!
Diffstat (limited to 'src/main/java/cc/polyfrost/oneconfig/config/gson/NonProfileSpecificExclusionStrategy.java')
-rw-r--r--src/main/java/cc/polyfrost/oneconfig/config/gson/NonProfileSpecificExclusionStrategy.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main/java/cc/polyfrost/oneconfig/config/gson/NonProfileSpecificExclusionStrategy.java b/src/main/java/cc/polyfrost/oneconfig/config/gson/NonProfileSpecificExclusionStrategy.java
index 7679b9c..e773295 100644
--- a/src/main/java/cc/polyfrost/oneconfig/config/gson/NonProfileSpecificExclusionStrategy.java
+++ b/src/main/java/cc/polyfrost/oneconfig/config/gson/NonProfileSpecificExclusionStrategy.java
@@ -16,7 +16,7 @@ public class NonProfileSpecificExclusionStrategy extends ExclusionUtils implemen
if (isSuperClassOf(f.getDeclaredClass(), Config.class)) return true;
if (f.getAnnotation(NonProfileSpecific.class) == null) return true;
Exclude exclude = f.getAnnotation(Exclude.class);
- return exclude != null && exclude.type() != Exclude.ExcludeType.HUD;
+ return exclude != null;
}
/**
@@ -26,6 +26,6 @@ public class NonProfileSpecificExclusionStrategy extends ExclusionUtils implemen
@Override
public boolean shouldSkipClass(Class<?> clazz) {
Exclude exclude = clazz.getAnnotation(Exclude.class);
- return exclude != null && exclude.type() != Exclude.ExcludeType.HUD;
+ return exclude != null;
}
}