summaryrefslogtreecommitdiffstats
path: root/nms-patches/ChatBaseComponent.patch
blob: 014be97d87ee6493fc985a0ae9e57a32d7425381 (plain)
1
2
3
4
5
6
7
8
9
10
11
--- /home/matt/mc-dev-private//net/minecraft/server/ChatBaseComponent.java	2015-02-26 22:40:22.295608143 +0000
+++ src/main/java/net/minecraft/server/ChatBaseComponent.java	2015-02-26 22:40:22.299608143 +0000
@@ -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() {