From 1ff313a7d7e5205ec925a941b58836abece7badb Mon Sep 17 00:00:00 2001 From: CraftBukkit/Spigot Date: Sun, 11 Jan 2015 18:46:09 +0000 Subject: [PATCH] Fix null pointer in ChatBaseComponent's hashCode method By: Thinkofdeath --- paper-server/nms-patches/ChatBaseComponent.patch | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 paper-server/nms-patches/ChatBaseComponent.patch diff --git a/paper-server/nms-patches/ChatBaseComponent.patch b/paper-server/nms-patches/ChatBaseComponent.patch new file mode 100644 index 0000000000..f8b1572857 --- /dev/null +++ b/paper-server/nms-patches/ChatBaseComponent.patch @@ -0,0 +1,11 @@ +--- ../work/decompile-8eb82bde//net/minecraft/server/ChatBaseComponent.java 2015-01-11 18:45:55.785438005 +0000 ++++ src/main/java/net/minecraft/server/ChatBaseComponent.java 2015-01-11 18:45:55.785438005 +0000 +@@ -91,7 +91,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() {