Patrone.cc-src-skid-me/toothless/server/nms-patches/ChatBaseComponent.patch

12 lines
369 B
Diff
Raw Permalink Normal View History

2019-06-19 05:50:21 +02:00
--- a/net/minecraft/server/ChatBaseComponent.java
+++ b/net/minecraft/server/ChatBaseComponent.java
@@ -111,7 +111,7 @@
}
public int hashCode() {
- return 31 * this.b.hashCode() + this.a.hashCode();
+ return 31 * this.getChatModifier().hashCode() + this.a.hashCode(); // CraftBukkit - fix null pointer
}
public String toString() {