mirror of
https://github.com/PaperMC/Paper.git
synced 2025-08-01 12:42:05 -07:00
SPIGOT-4347: Add API to allow storing arbitrary values on ItemStacks
This commit is contained in:
20
nms-patches/MojangsonParser.patch
Normal file
20
nms-patches/MojangsonParser.patch
Normal file
@@ -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();
|
Reference in New Issue
Block a user