summaryrefslogtreecommitdiffstats
path: root/nms-patches
diff options
context:
space:
mode:
authorBjarne Koll <LynxPlay101@gmail.com>2018-12-01 20:26:23 +1100
committermd_5 <git@md-5.net>2018-12-04 09:44:56 +1100
commit38e4c013b66d2a870e83fe61b2da6bad608c69af (patch)
tree2113fe1f227da35107f174404a68b997deb83790 /nms-patches
parenta4c555b6b12661fbcfc442e91a9df1436508e552 (diff)
downloadcraftbukkit-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.patch20
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();