SPIGOT-4193: API for selecting entities by strings

By: md_5 <git@md-5.net>
This commit is contained in:
CraftBukkit/Spigot
2019-01-31 15:08:25 +11:00
parent b8ededbf19
commit 8b6d75b06e
5 changed files with 105 additions and 2 deletions

View File

@@ -505,7 +505,7 @@ public class CraftBlockData implements BlockData {
StringReader reader = new StringReader(data);
ArgumentBlock arg = new ArgumentBlock(reader, false).a(false);
Preconditions.checkArgument(!reader.canRead(), "Spurious trailing data");
Preconditions.checkArgument(!reader.canRead(), "Spurious trailing data: " + data);
blockData = arg.getBlockData();
parsed = arg.getStateMap();