simplify error messages

This commit is contained in:
gnembon committed 2021-03-09 13:29:20 -04:00
1 parent d72a617290
commit 2d1b53258c
9 files changed
+25 -21

No files matched your search

@@ -76,7 +76,7 @@ public class BlockValue extends Value
catch (CommandSyntaxException ignored)
{
}
throw new ThrowStatement("Cannot parse block: "+str, Throwables.UNKNOWN_BLOCK);
throw new ThrowStatement(str, Throwables.UNKNOWN_BLOCK);
}
public static BlockPos locateBlockPos(CarpetContext c, int xpos, int ypos, int zpos)
@@ -299,7 +299,7 @@ public class NBTSerializableValue extends Value implements ContainerValueInterfa
}
catch (CommandSyntaxException e)
{
throw new ThrowStatement("Incorrect item: "+itemString, Throwables.UNKNOWN_ITEM);
throw new ThrowStatement(itemString, Throwables.UNKNOWN_ITEM);
}
}
@@ -160,7 +160,7 @@ public class ValueConversions
}
}
if (dim == null)
throw new ThrowStatement("Incorrect dimension string: "+dimString, Throwables.UNKNOWN_DIMENSION);
throw new ThrowStatement(dimString, Throwables.UNKNOWN_DIMENSION);
return server.getWorld(dim);
}
}