diff options
author | Thinkofdeath <thinkofdeath@spigotmc.org> | 2015-01-11 18:46:09 +0000 |
---|---|---|
committer | Thinkofdeath <thinkofdeath@spigotmc.org> | 2015-01-11 18:46:09 +0000 |
commit | 1a84bacbdd609d8d0ae9a00190be37a5e02b7aa3 (patch) | |
tree | c24fa287b2149e1f05172b8d77d2b6f6e72300cf /nms-patches | |
parent | 5e6c347daaf37b9be31ec0eae7bcba7c21e6e028 (diff) | |
download | craftbukkit-1a84bacbdd609d8d0ae9a00190be37a5e02b7aa3.tar craftbukkit-1a84bacbdd609d8d0ae9a00190be37a5e02b7aa3.tar.gz craftbukkit-1a84bacbdd609d8d0ae9a00190be37a5e02b7aa3.tar.lz craftbukkit-1a84bacbdd609d8d0ae9a00190be37a5e02b7aa3.tar.xz craftbukkit-1a84bacbdd609d8d0ae9a00190be37a5e02b7aa3.zip |
Fix null pointer in ChatBaseComponent's hashCode method
Diffstat (limited to 'nms-patches')
-rw-r--r-- | nms-patches/ChatBaseComponent.patch | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/nms-patches/ChatBaseComponent.patch b/nms-patches/ChatBaseComponent.patch new file mode 100644 index 00000000..f8b15728 --- /dev/null +++ b/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() { |