Temp adventure update
This commit is contained in:
29
patches/api/Temp-adventure-update.patch
Normal file
29
patches/api/Temp-adventure-update.patch
Normal file
@@ -0,0 +1,29 @@
|
||||
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
||||
From: Jason Penilla <11360596+jpenilla@users.noreply.github.com>
|
||||
Date: Wed, 6 Dec 2023 13:38:10 -0700
|
||||
Subject: [PATCH] Temp adventure update
|
||||
|
||||
|
||||
diff --git a/build.gradle.kts b/build.gradle.kts
|
||||
index 0000000000000000000000000000000000000000..0000000000000000000000000000000000000000 100644
|
||||
--- a/build.gradle.kts
|
||||
+++ b/build.gradle.kts
|
||||
@@ -0,0 +0,0 @@ val apiAndDocs: Configuration by configurations.creating {
|
||||
configurations.api {
|
||||
extendsFrom(apiAndDocs)
|
||||
}
|
||||
+val extraRuntime: Configuration by configurations.creating
|
||||
+configurations.runtimeClasspath {
|
||||
+ extendsFrom(extraRuntime)
|
||||
+}
|
||||
|
||||
dependencies {
|
||||
// api dependencies are listed transitively to API consumers
|
||||
@@ -0,0 +0,0 @@ dependencies {
|
||||
}
|
||||
api("it.unimi.dsi:fastutil:8.5.6")
|
||||
apiAndDocs(platform("net.kyori:adventure-bom:$adventureVersion"))
|
||||
+ extraRuntime(platform("net.kyori:adventure-bom:4.15.0-SNAPSHOT"))
|
||||
apiAndDocs("net.kyori:adventure-api")
|
||||
apiAndDocs("net.kyori:adventure-text-minimessage")
|
||||
apiAndDocs("net.kyori:adventure-text-serializer-gson")
|
||||
@@ -1,21 +0,0 @@
|
||||
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
||||
From: Nassim Jahnke <nassim@njahnke.dev>
|
||||
Date: Wed, 6 Dec 2023 21:24:54 +0100
|
||||
Subject: [PATCH] HACK id string codec in hover event
|
||||
|
||||
Temporary hack to remove serialization to the int array, since adventure has not been updated to deserialize this format
|
||||
|
||||
|
||||
diff --git a/src/main/java/net/minecraft/network/chat/HoverEvent.java b/src/main/java/net/minecraft/network/chat/HoverEvent.java
|
||||
index 0000000000000000000000000000000000000000..0000000000000000000000000000000000000000 100644
|
||||
--- a/src/main/java/net/minecraft/network/chat/HoverEvent.java
|
||||
+++ b/src/main/java/net/minecraft/network/chat/HoverEvent.java
|
||||
@@ -0,0 +0,0 @@ public class HoverEvent {
|
||||
public static final Codec<HoverEvent.EntityTooltipInfo> CODEC = RecordCodecBuilder.create((instance) -> {
|
||||
return instance.group(BuiltInRegistries.ENTITY_TYPE.byNameCodec().fieldOf("type").forGetter((content) -> {
|
||||
return content.type;
|
||||
- }), UUIDUtil.LENIENT_CODEC.fieldOf("id").forGetter((content) -> {
|
||||
+ }), UUIDUtil.STRING_CODEC.fieldOf("id").forGetter((content) -> {
|
||||
return content.id;
|
||||
}), ExtraCodecs.strictOptionalField(ComponentSerialization.CODEC, "name").forGetter((content) -> {
|
||||
return content.name;
|
||||
Reference in New Issue
Block a user