Guest User

Untitled

a guest
May 16th, 2018
122
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.42 KB | None | 0 0
  1. cfgLoader = HoconConfigurationLoader.builder().setFile(defConfig).build();
  2. configRoot = cfgLoader.load(ConfigurationOptions.defaults().setObjectMapperFactory(factory).setShouldCopyDefaults(true).setHeader(header));
  3. this.root = configRoot.getValue(TypeToken.of(RPMainCategory.class), new RPMainCategory());
  4.  
  5. if (root.config_version < 7.5D){
  6. root.config_version = 7.5D;
  7. }
  8.  
  9. cfgLoader.save(configRoot);
Add Comment
Please, Sign In to add comment