mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-09 03:43:40 +01:00
15 lines
688 B
Diff
15 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()) {
|