Skip to content

Commit

Permalink
Changed some config stuff so values generate better in the file
Browse files Browse the repository at this point in the history
  • Loading branch information
Buuz135 committed Mar 11, 2019
1 parent 698f778 commit a7db2d1
Showing 1 changed file with 4 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,14 +36,13 @@ public class CustomConfiguration {

public static void sync() {
try {
enableBookEntriesInJEI = config.getBoolean("enableBookEntriesInJEI", Configuration.CATEGORY_GENERAL, true, "Enable to show book entries in JEI");
enableMultiblockEdition = config.getBoolean("enableMultiblockEdition", Configuration.CATEGORY_GENERAL, true, "Enable to allow the multiblock edition to be used");
CustomOrientedBlock.blockList.forEach(CustomOrientedBlock::getMachineConfig);
ItemRegistry.itemInfinityDrill.configuration(config);
enableBookEntriesInJEI = config.getBoolean("enableBookEntriesInJEI", Configuration.CATEGORY_CLIENT, true, "Enable to show book entries in JEI");
enableMultiblockEdition = config.getBoolean("enableMultiblockEdition", Configuration.CATEGORY_CLIENT, true, "Enable to allow the multiblock edition to be used");
} catch (Exception e) {

} finally {
if (config.hasChanged()) config.save();
e.printStackTrace();
}
if (config.hasChanged()) config.save();
}
}

0 comments on commit a7db2d1

Please sign in to comment.