aboutsummaryrefslogtreecommitdiffhomepage
path: root/patches/server/0010-Adventure.patch
diff options
context:
space:
mode:
authorNassim Jahnke <[email protected]>2024-04-25 21:40:53 +0200
committerNassim Jahnke <[email protected]>2024-04-25 21:57:59 +0200
commitd01f6b2fd23b43f2aec598f2eb7ecfd631b95b27 (patch)
tree4d3b32d96e7f2989f8e6ee47c128ed10153de84c /patches/server/0010-Adventure.patch
parentca9001a9366952f0a3ac77e6f98db534ba5a54eb (diff)
downloadPaper-d01f6b2fd23b43f2aec598f2eb7ecfd631b95b27.tar.gz
Paper-d01f6b2fd23b43f2aec598f2eb7ecfd631b95b27.zip
Fix more compile issues
Diffstat (limited to 'patches/server/0010-Adventure.patch')
-rw-r--r--patches/server/0010-Adventure.patch9
1 files changed, 4 insertions, 5 deletions
diff --git a/patches/server/0010-Adventure.patch b/patches/server/0010-Adventure.patch
index 27a292058c..0d86acf833 100644
--- a/patches/server/0010-Adventure.patch
+++ b/patches/server/0010-Adventure.patch
@@ -1804,10 +1804,10 @@ index 0000000000000000000000000000000000000000..8323f135d6bf2e1f12525e05094ffa3f
+}
diff --git a/src/main/java/io/papermc/paper/adventure/providers/DataComponentValueConverterProviderImpl.java b/src/main/java/io/papermc/paper/adventure/providers/DataComponentValueConverterProviderImpl.java
new file mode 100644
-index 0000000000000000000000000000000000000000..c197e28d8d8cdf751be1cf3fdc413f8ca0d03038
+index 0000000000000000000000000000000000000000..ef19891a895e699cac638bd9b9f2fa0eaf1371ba
--- /dev/null
+++ b/src/main/java/io/papermc/paper/adventure/providers/DataComponentValueConverterProviderImpl.java
-@@ -0,0 +1,76 @@
+@@ -0,0 +1,75 @@
+package io.papermc.paper.adventure.providers;
+
+import com.google.gson.JsonElement;
@@ -1828,8 +1828,7 @@ index 0000000000000000000000000000000000000000..c197e28d8d8cdf751be1cf3fdc413f8c
+import org.checkerframework.checker.nullness.qual.Nullable;
+import org.checkerframework.framework.qual.DefaultQualifier;
+
-+import static net.kyori.adventure.nbt.api.BinaryTagHolder.binaryTagHolder;
-+import static net.kyori.adventure.text.serializer.gson.GsonDataComponentValue.gsonDatacomponentValue;
++import static net.kyori.adventure.text.serializer.gson.GsonDataComponentValue.gsonDataComponentValue;
+
+@DefaultQualifier(NonNull.class)
+public class DataComponentValueConverterProviderImpl implements DataComponentValueConverterRegistry.Provider {
@@ -1848,7 +1847,7 @@ index 0000000000000000000000000000000000000000..c197e28d8d8cdf751be1cf3fdc413f8c
+ DataComponentValueConverterRegistry.Conversion.convert(
+ PaperAdventure.DataComponentValueImpl.class,
+ GsonDataComponentValue.class,
-+ (key, dataComponentValue) -> gsonDatacomponentValue((JsonElement) dataComponentValue.codec().encodeStart(JsonOps.INSTANCE, dataComponentValue.value()).getOrThrow())
++ (key, dataComponentValue) -> gsonDataComponentValue((JsonElement) dataComponentValue.codec().encodeStart(JsonOps.INSTANCE, dataComponentValue.value()).getOrThrow())
+ ),
+ DataComponentValueConverterRegistry.Conversion.convert(
+ GsonDataComponentValue.class,