diff options
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.java | 4 |
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; } } |