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