* 3 Pyrite dusts in an Industrial Electrolyzer gives 1 Iron dust and 2 Sulfur dust

* referenced to issue #484, fixed #1, #3, #6, #7

* Fixed #722 with a null ore check
This commit is contained in:
Zygimantas 2016-08-10 23:57:38 +03:00 committed by Modmuss50
parent cf46fea074
commit bda861454c

View file

@ -445,16 +445,18 @@ public class ModRecipes
ItemStack oreStack = getDictOreOrNull(oreDictionaryName, 1);
String[] data = getDictData(oreDictionaryName);
//High-level ores shouldn't grind here
if(data[0].equals("ore") && (
data[1].equals("tungsten") ||
data[1].equals("titanium") ||
data[1].equals("aluminium") ||
data[1].equals("iridium")))
data[1].equals("iridium") ||
data[1].equals("saltpeter")) ||
oreStack == null)
continue;
boolean ore = data[0].equals("ore");
Core.logHelper.info("Ore: " + data[1]);
ItemStack dust = getDictOreOrNull(joinDictName("dust", data[1]), ore ? 2 : 1);
RecipeHandler.addRecipe(new GrinderRecipe(oreStack, dust, ore ? 270 : 200, ore ? 31 : 22));
}