Update BuildCraftCore.java

Put config.hasChanged() on config.save() to fall in line with lex's merge on Forge.
This commit is contained in:
TarzanBuzzyMan 2013-03-18 11:05:45 +13:00
parent 7672b7fc24
commit e784f614d3

View file

@ -253,7 +253,9 @@ public class BuildCraftCore {
diamondGearItem = (new ItemBuildCraft(diamondGearId.getInt())).setUnlocalizedName("diamondGearItem");
LanguageRegistry.addName(diamondGearItem, "Diamond Gear");
} finally {
mainConfiguration.save();
if (mainConfiguration.hasChanged()) {
mainConfiguration.save();
}
}
}