mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-07 19:12:22 +01:00
14 lines
639 B
Diff
14 lines
639 B
Diff
--- a/net/minecraft/network/chat/MutableComponent.java
|
|
+++ b/net/minecraft/network/chat/MutableComponent.java
|
|
@@ -94,6 +_,11 @@
|
|
|
|
@Override
|
|
public boolean equals(Object other) {
|
|
+ // Paper start - make AdventureComponent equivalent
|
|
+ if (other instanceof io.papermc.paper.adventure.AdventureComponent adventureComponent) {
|
|
+ other = adventureComponent.deepConverted();
|
|
+ }
|
|
+ // Paper end - make AdventureComponent equivalent
|
|
return this == other
|
|
|| other instanceof MutableComponent mutableComponent
|
|
&& this.contents.equals(mutableComponent.contents)
|