diff options
Diffstat (limited to 'src/main/java/dev/isxander/yacl3/config/GsonConfigInstance.java')
-rw-r--r-- | src/main/java/dev/isxander/yacl3/config/GsonConfigInstance.java | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/main/java/dev/isxander/yacl3/config/GsonConfigInstance.java b/src/main/java/dev/isxander/yacl3/config/GsonConfigInstance.java index c47afe2..83a0b1c 100644 --- a/src/main/java/dev/isxander/yacl3/config/GsonConfigInstance.java +++ b/src/main/java/dev/isxander/yacl3/config/GsonConfigInstance.java @@ -68,11 +68,11 @@ public class GsonConfigInstance<T> extends ConfigInstance<T> { this.path = path; this.gson = builder .setExclusionStrategies(new ConfigExclusionStrategy()) - /*? if >1.20.4 { *//* + /*? if >1.20.4 { */ .registerTypeHierarchyAdapter(Component.class, new Component.SerializerAdapter(RegistryAccess.EMPTY)) - *//*? } elif =1.20.4 {*/ + /*? } elif =1.20.4 {*//* .registerTypeHierarchyAdapter(Component.class, new Component.SerializerAdapter()) - /*? } else {*//* + *//*? } else {*//* .registerTypeHierarchyAdapter(Component.class, new Component.Serializer()) *//*?}*/ .registerTypeHierarchyAdapter(Style.class, /*? if >=1.20.4 {*/new GsonConfigSerializer.StyleTypeAdapter()/*?} else {*//*new Style.Serializer()*//*?}*/) @@ -169,11 +169,11 @@ public class GsonConfigInstance<T> extends ConfigInstance<T> { private UnaryOperator<GsonBuilder> gsonBuilder = builder -> builder .setFieldNamingPolicy(FieldNamingPolicy.LOWER_CASE_WITH_UNDERSCORES) .serializeNulls() - /*? if >1.20.4 { *//* + /*? if >1.20.4 { */ .registerTypeHierarchyAdapter(Component.class, new Component.SerializerAdapter(RegistryAccess.EMPTY)) - *//*? } elif =1.20.4 {*/ + /*? } elif =1.20.4 {*//* .registerTypeHierarchyAdapter(Component.class, new Component.SerializerAdapter()) - /*? } else {*//* + *//*? } else {*//* .registerTypeHierarchyAdapter(Component.class, new Component.Serializer()) *//*?}*/ .registerTypeHierarchyAdapter(Style.class, /*? if >=1.20.4 {*/new GsonConfigSerializer.StyleTypeAdapter()/*?} else {*//*new Style.Serializer()*//*?}*/) |