Exemplo n.º 1
0
  public static void initConfig(File file) {
    Reference.config = new Configuration(file, Reference.CONFIG_VERSION);

    if (!Reference.CONFIG_VERSION.equals(Reference.config.getLoadedConfigVersion())) {
      FRLog.info("Your FloatingRuins config file is out of date and will be altered.");
      for (ConfigElement ce : ConfigElement.values())
        if (Reference.config.moveProperty(Reference.CTGY_GEN, ce.key(), ce.ctgy()))
          FRLog.debug("Property %s moved from %s to %s", ce.key(), Reference.CTGY_GEN, ce.ctgy());
    }

    syncConfig(true);
  }