Merge pull request #2031 from ljfa-ag/master

#1745 Fix grinding ball handling
This commit is contained in:
tterrag1098 committed 2015-03-01 08:45:48 -05:00
commit 5cd08eebb3
1 file changed
+5 -2
@@ -128,16 +128,19 @@ public class CrusherRecipeManager {
}
public void addCustomRecipes(String xmlDef) {
GrindingBallTagHandler th = new GrindingBallTagHandler();
RecipeConfig config;
try {
config = RecipeConfigParser.parse(xmlDef, new GrindingBallTagHandler());
config = RecipeConfigParser.parse(xmlDef, th);
} catch (Exception e) {
Log.error("Error parsing custom xml");
return;
}
balls.addAll(th.balls.values());
ballExcludes.addAll(th.excludes);
if(config == null) {
Log.error("Could process custom XML");
Log.error("Could not process custom XML");
return;
}
processConfig(config);