objectNames = new ArrayList<String>();
objectChances = new ArrayList<Double>();
for (int i = 0; i < args.size() - 1; i += 2)
{
CustomObject object = getHolder().worldConfig.worldObjects.parseCustomObject(args.get(i));
if (object == null || !object.canSpawnAsObject())
{
throw new InvalidConfigException("No custom object found with the name " + args.get(i));
}
if (!(object instanceof StructuredCustomObject) || ((StructuredCustomObject) object).getBranches(Rotation.NORTH).length == 0)
{