From 38e4c013b66d2a870e83fe61b2da6bad608c69af Mon Sep 17 00:00:00 2001 From: Bjarne Koll Date: Sat, 1 Dec 2018 20:26:23 +1100 Subject: SPIGOT-4347: Add API to allow storing arbitrary values on ItemStacks --- nms-patches/MojangsonParser.patch | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 nms-patches/MojangsonParser.patch (limited to 'nms-patches/MojangsonParser.patch') 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(); -- cgit v1.2.3