2021-01-29 17:54:03 +01:00
|
|
|
--- a/net/minecraft/network/chat/MutableComponent.java
|
|
|
|
+++ b/net/minecraft/network/chat/MutableComponent.java
|
2024-12-14 18:44:07 +01:00
|
|
|
@@ -94,6 +_,11 @@
|
2021-01-29 17:54:03 +01:00
|
|
|
|
|
|
|
@Override
|
2024-12-14 18:44:07 +01:00
|
|
|
public boolean equals(Object other) {
|
2021-01-29 17:54:03 +01:00
|
|
|
+ // Paper start - make AdventureComponent equivalent
|
2024-12-14 18:44:07 +01:00
|
|
|
+ if (other instanceof io.papermc.paper.adventure.AdventureComponent adventureComponent) {
|
|
|
|
+ other = adventureComponent.deepConverted();
|
2021-01-29 17:54:03 +01:00
|
|
|
+ }
|
|
|
|
+ // Paper end - make AdventureComponent equivalent
|
2024-12-14 18:44:07 +01:00
|
|
|
return this == other
|
|
|
|
|| other instanceof MutableComponent mutableComponent
|
2021-01-29 17:54:03 +01:00
|
|
|
&& this.contents.equals(mutableComponent.contents)
|