added parse_nbt and ability for set to submit params in list, and block data.

This commit is contained in:
gnembon committed 2020-06-18 17:15:07 -03:00
1 parent 56bd79aa69
commit 4145280bcd
3 files changed
+65 -29

No files matched your search

@@ -109,7 +109,7 @@ public class NBTSerializableValue extends Value implements ContainerValueInterfa
}
catch (CommandSyntaxException e)
{
return null;
throw new InternalExpressionException("Incorrect NBT tag: nbtString");
}
NBTSerializableValue value = new NBTSerializableValue(tag);
value.nbtString = nbtString;
@@ -317,10 +317,7 @@ public class NBTSerializableValue extends Value implements ContainerValueInterfa
return v;
if (v instanceof NullValue)
return Value.NULL;
Value ret = NBTSerializableValue.parseString(v.getString());
if (ret == null)
return Value.NULL;
return ret;
return NBTSerializableValue.parseString(v.getString());
}