mirror of
https://github.com/GTNewHorizons/EnderIO.git
synced 2026-11-18 11:29:30 +00:00
Merge pull request #2031 from ljfa-ag/master
#1745 Fix grinding ball handling
This commit is contained in:
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);
|
||||
|
||||
Reference in new issue
Block a user