PaperMC/paper-server/nms-patches/ChatBaseComponent.patch
CraftBukkit/Spigot d506c12c07 Minecraft 1.9.4
By: md_5 <git@md-5.net>
2016-05-10 21:47:39 +10:00

11 lines
369 B
Diff

--- a/net/minecraft/server/ChatBaseComponent.java
+++ b/net/minecraft/server/ChatBaseComponent.java
@@ -112,7 +112,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() {