diff options
author | Bjarne Koll <LynxPlay101@gmail.com> | 2018-12-01 20:26:23 +1100 |
---|---|---|
committer | md_5 <git@md-5.net> | 2018-12-04 09:44:56 +1100 |
commit | 38e4c013b66d2a870e83fe61b2da6bad608c69af (patch) | |
tree | 2113fe1f227da35107f174404a68b997deb83790 /nms-patches | |
parent | a4c555b6b12661fbcfc442e91a9df1436508e552 (diff) | |
download | craftbukkit-38e4c013b66d2a870e83fe61b2da6bad608c69af.tar craftbukkit-38e4c013b66d2a870e83fe61b2da6bad608c69af.tar.gz craftbukkit-38e4c013b66d2a870e83fe61b2da6bad608c69af.tar.lz craftbukkit-38e4c013b66d2a870e83fe61b2da6bad608c69af.tar.xz craftbukkit-38e4c013b66d2a870e83fe61b2da6bad608c69af.zip |
SPIGOT-4347: Add API to allow storing arbitrary values on ItemStacks
Diffstat (limited to 'nms-patches')
-rw-r--r-- | nms-patches/MojangsonParser.patch | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/nms-patches/MojangsonParser.patch b/nms-patches/MojangsonParser.patch new file mode 100644 index 00000000..abbaae7a --- /dev/null +++ b/nms-patches/MojangsonParser.patch @@ -0,0 +1,20 @@ +--- a/net/minecraft/server/MojangsonParser.java ++++ b/net/minecraft/server/MojangsonParser.java +@@ -82,7 +82,7 @@ + } + } + +- private NBTBase b(String s) { ++ public NBTBase b(String s) { // PAIL + try { + if (MojangsonParser.i.matcher(s).matches()) { + return new NBTTagFloat(Float.parseFloat(s.substring(0, s.length() - 1))); +@@ -207,7 +207,7 @@ + } + } + +- private NBTBase h() throws CommandSyntaxException { ++ public NBTBase h() throws CommandSyntaxException { // PAIL + this.a('['); + int i = this.n.getCursor(); + char c0 = this.n.read(); |