Fixed #286 - Resource Generator not disable config not working

This commit is contained in:
Calclavia 2014-02-25 08:24:59 +08:00
parent c122eaec05
commit 53dc0957fe

View file

@ -74,7 +74,7 @@ public class ResourceGenerator
boolean allowMaterial = Settings.CONFIGURATION.get("Resource_Generator", "Enable " + oreDictName, true).getBoolean(true);
Settings.CONFIGURATION.save();
if (!allowMaterial && OreDetectionBlackList.isIngotBlackListed("ingot" + oreDictName) || OreDetectionBlackList.isOreBlackListed("ore" + oreDictName))
if (!allowMaterial || OreDetectionBlackList.isIngotBlackListed("ingot" + oreDictName) || OreDetectionBlackList.isOreBlackListed("ore" + oreDictName))
return;
materialNames.add(materialName);