aboutsummaryrefslogtreecommitdiffhomepage
path: root/patches/server/0010-Adventure.patch
diff options
context:
space:
mode:
authorJake Potrebic <[email protected]>2024-04-26 09:22:55 -0700
committerJake Potrebic <[email protected]>2024-04-26 09:22:55 -0700
commitcc81668863edd8ed6b382a59dd6fc002df14dea9 (patch)
treeb04789d4d219e4321d35922c6e1c85f7d866fbbb /patches/server/0010-Adventure.patch
parentf6fae41cdf18e3628d6d39a7d22cf678e3c8e330 (diff)
downloadPaper-cc81668863edd8ed6b382a59dd6fc002df14dea9.tar.gz
Paper-cc81668863edd8ed6b382a59dd6fc002df14dea9.zip
fix some issues on the todo list
Diffstat (limited to 'patches/server/0010-Adventure.patch')
-rw-r--r--patches/server/0010-Adventure.patch4
1 files changed, 2 insertions, 2 deletions
diff --git a/patches/server/0010-Adventure.patch b/patches/server/0010-Adventure.patch
index 55b87b1e4d..7d92afbddf 100644
--- a/patches/server/0010-Adventure.patch
+++ b/patches/server/0010-Adventure.patch
@@ -14,7 +14,7 @@ Co-authored-by: Jake Potrebic <[email protected]>
diff --git a/src/main/java/io/papermc/paper/adventure/AdventureCodecs.java b/src/main/java/io/papermc/paper/adventure/AdventureCodecs.java
new file mode 100644
-index 0000000000000000000000000000000000000000..afd658635d1243770ecd96d3f274e3c24175b1e1
+index 0000000000000000000000000000000000000000..8dcedc5f4d4453fd942787dbcb9c757274ec7715
--- /dev/null
+++ b/src/main/java/io/papermc/paper/adventure/AdventureCodecs.java
@@ -0,0 +1,446 @@
@@ -143,7 +143,7 @@ index 0000000000000000000000000000000000000000..afd658635d1243770ecd96d3f274e3c2
+
+ static Codec<HoverEvent.ShowItem> showItemCodec(final Codec<Component> componentCodec) {
+ return net.minecraft.network.chat.HoverEvent.ItemStackInfo.CODEC.xmap(isi -> {
-+ @Subst("key") final String typeKey = isi.item.unwrapKey().orElseThrow().toString();
++ @Subst("key") final String typeKey = isi.item.unwrapKey().orElseThrow().location().toString();
+ return HoverEvent.ShowItem.showItem(Key.key(typeKey), isi.count, PaperAdventure.asAdventure(isi.getItemStack().getComponentsPatch()));
+ }, si -> {
+ final Item itemType = BuiltInRegistries.ITEM.get(PaperAdventure.asVanilla(si.item()));