mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-10 03:52:45 +01:00
Fix null pointer in ChatBaseComponent's hashCode method
By: Thinkofdeath <thinkofdeath@spigotmc.org>
This commit is contained in:
parent
22294d1490
commit
1ff313a7d7
1 changed files with 11 additions and 0 deletions
11
paper-server/nms-patches/ChatBaseComponent.patch
Normal file
11
paper-server/nms-patches/ChatBaseComponent.patch
Normal file
|
@ -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() {
|
Loading…
Reference in a new issue