13
0
geforkt von Mirrors/Paper
Paper/paper-server/nms-patches/ChatBaseComponent.patch
CraftBukkit/Spigot 1ff313a7d7 Fix null pointer in ChatBaseComponent's hashCode method
By: Thinkofdeath <thinkofdeath@spigotmc.org>
2015-01-11 18:46:09 +00:00

12 Zeilen
477 B
Diff

--- ../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() {