CustomObject object = getHolder().worldConfig.worldObjects.parseCustomObject(args.get(i));
if (object == null)
{
throw new InvalidConfigException("Custom object " + args.get(i) + " not found!");
}
if (!object.canSpawnAsTree())
{
throw new InvalidConfigException("Custom object " + args.get(i) + " is not a tree!");
}
trees.add(object);
treeNames.add(args.get(i));