private void ReadWorldCustomObjects() {
    File directory = new File(SettingsDir, "BOBPlugins");
    if (directory.exists())
      if (!directory.renameTo(
          new File(SettingsDir, TCDefaultValues.BO_WorldDirectoryName.stringValue()))) {
        System.out.println("TerrainControl: Can`t rename old custom objects folder");
      }

    directory = new File(this.SettingsDir, TCDefaultValues.BO_WorldDirectoryName.stringValue());

    if (!directory.exists()) {
      if (!directory.mkdirs()) {
        System.out.println("TerrainControl: can`t create WorldObjects directory");
        return;
      }
    }

    ArrayList<CustomObject> rawObjects = ObjectsStore.LoadObjectsFromDirectory(directory);

    CustomObjectsCompiled = new ArrayList<CustomObjectCompiled>();

    for (CustomObject object : rawObjects) CustomObjectsCompiled.add(object.Compile(""));
    System.out.println(
        "TerrainControl:" + CustomObjectsCompiled.size() + " world custom objects loaded");
  }
  private void ReadWorldCustomObjects() {
    CustomObjectsDirectory = new File(SettingsDir, "BOBPlugins");
    if (CustomObjectsDirectory.exists())
      if (!CustomObjectsDirectory.renameTo(
          new File(SettingsDir, TCDefaultValues.BO_WorldDirectoryName.stringValue()))) {
        System.out.println("TerrainControl: Can`t rename old custom objects folder");
      }

    CustomObjectsDirectory =
        new File(this.SettingsDir, TCDefaultValues.BO_WorldDirectoryName.stringValue());

    if (!CustomObjectsDirectory.exists()) {
      if (!CustomObjectsDirectory.mkdirs()) {
        System.out.println("TerrainControl: can`t create WorldObjects CustomObjectsDirectory");
        return;
      }
    }

    customObjects =
        new ArrayList<CustomObject>(
            TerrainControl.getCustomObjectManager().loadObjects(CustomObjectsDirectory).values());

    TerrainControl.log(customObjects.size() + " world custom objects loaded");
  }