aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/dev/isxander/yacl3/config/GsonConfigInstance.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/dev/isxander/yacl3/config/GsonConfigInstance.java')
-rw-r--r--src/main/java/dev/isxander/yacl3/config/GsonConfigInstance.java20
1 files changed, 10 insertions, 10 deletions
diff --git a/src/main/java/dev/isxander/yacl3/config/GsonConfigInstance.java b/src/main/java/dev/isxander/yacl3/config/GsonConfigInstance.java
index 83a0b1c..a0f7ee4 100644
--- a/src/main/java/dev/isxander/yacl3/config/GsonConfigInstance.java
+++ b/src/main/java/dev/isxander/yacl3/config/GsonConfigInstance.java
@@ -68,12 +68,12 @@ 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 {*//*
- .registerTypeHierarchyAdapter(Component.class, new Component.SerializerAdapter())
- *//*? } else {*//*
- .registerTypeHierarchyAdapter(Component.class, new Component.Serializer())
+ /*?} elif =1.20.4 {*/
+ /*.registerTypeHierarchyAdapter(Component.class, new Component.SerializerAdapter())
+ *//*?} else {*/
+ /*.registerTypeHierarchyAdapter(Component.class, new Component.Serializer())
*//*?}*/
.registerTypeHierarchyAdapter(Style.class, /*? if >=1.20.4 {*/new GsonConfigSerializer.StyleTypeAdapter()/*?} else {*//*new Style.Serializer()*//*?}*/)
.registerTypeHierarchyAdapter(Color.class, new ColorTypeAdapter())
@@ -169,12 +169,12 @@ 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 {*//*
- .registerTypeHierarchyAdapter(Component.class, new Component.SerializerAdapter())
- *//*? } else {*//*
- .registerTypeHierarchyAdapter(Component.class, new Component.Serializer())
+ /*?} elif =1.20.4 {*/
+ /*.registerTypeHierarchyAdapter(Component.class, new Component.SerializerAdapter())
+ *//*?} else {*/
+ /*.registerTypeHierarchyAdapter(Component.class, new Component.Serializer())
*//*?}*/
.registerTypeHierarchyAdapter(Style.class, /*? if >=1.20.4 {*/new GsonConfigSerializer.StyleTypeAdapter()/*?} else {*//*new Style.Serializer()*//*?}*/)
.registerTypeHierarchyAdapter(Color.class, new ColorTypeAdapter())