mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-08 19:34:09 +01:00
66779f5c86
== AT == public net.minecraft.network.chat.HoverEvent$ItemStackInfo item public net.minecraft.network.chat.HoverEvent$ItemStackInfo count public net.minecraft.network.chat.HoverEvent$ItemStackInfo components public net.minecraft.network.chat.contents.TranslatableContents filterAllowedArguments(Ljava/lang/Object;)Lcom/mojang/serialization/DataResult; Co-authored-by: zml <zml@stellardrift.ca> Co-authored-by: Jake Potrebic <jake.m.potrebic@gmail.com>
14 lines
688 B
Diff
14 lines
688 B
Diff
--- a/net/minecraft/network/chat/ComponentUtils.java
|
|
+++ b/net/minecraft/network/chat/ComponentUtils.java
|
|
@@ -41,6 +41,11 @@
|
|
if (depth > 100) {
|
|
return text.copy();
|
|
} else {
|
|
+ // Paper start - adventure; pass actual vanilla component
|
|
+ if (text instanceof io.papermc.paper.adventure.AdventureComponent adventureComponent) {
|
|
+ text = adventureComponent.deepConverted();
|
|
+ }
|
|
+ // Paper end - adventure; pass actual vanilla component
|
|
MutableComponent mutableComponent = text.getContents().resolve(source, sender, depth + 1);
|
|
|
|
for (Component component : text.getSiblings()) {
|