summaryrefslogtreecommitdiffstats
path: root/nms-patches/ChatBaseComponent.patch
blob: 308ddf9f7acfe5b9f0d735de54d64a5254c500d2 (plain)
1
2
3
4
5
6
7
8
9
10
11
--- 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() {