예제 #1
0
 private void innerLoad() {
   File f = DimensionManager.getCurrentSaveRootDirectory();
   conf =
       new HyperCubeConfig(
           new File(
               DimensionManager.getCurrentSaveRootDirectory(),
               "enderio/dimensionalTransceiver.cfg"));
   publicChannels.addAll(conf.getPublicChannels());
   userChannels.putAll(conf.getUserChannels());
 }
예제 #2
0
  private void updateConfig() {

    if (conf == null) {
      Log.warn("HyperCubeRegister.updateConfig: Config was null.");
      return;
    }

    conf.setPublicChannels(publicChannels);
    conf.setUserChannels(userChannels);
    conf.save();
  }