From 70b8a6e0174e8d6317a4a847f70071fe25c9854f Mon Sep 17 00:00:00 2001 From: CrazyPants Date: Sat, 26 Jul 2014 12:16:19 +0800 Subject: [PATCH] Fixed items with multiple ore dict. entries not working in recipes correctly. --- .../machine/recipe/OreDictionaryRecipeInput.java | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/src/main/java/crazypants/enderio/machine/recipe/OreDictionaryRecipeInput.java b/src/main/java/crazypants/enderio/machine/recipe/OreDictionaryRecipeInput.java index 1845d452..43488482 100644 --- a/src/main/java/crazypants/enderio/machine/recipe/OreDictionaryRecipeInput.java +++ b/src/main/java/crazypants/enderio/machine/recipe/OreDictionaryRecipeInput.java @@ -32,8 +32,17 @@ public class OreDictionaryRecipeInput extends RecipeInput { if(test == null || oreId < 0) { return false; } - try { //work around for issue #591 - return OreDictionary.getOreID(test) == oreId; + try { + int[] ids = OreDictionary.getOreIDs(test); + if(ids == null) { + return false; + } + for(int id : ids) { + if(id == oreId) { + return true; + } + } + return false; } catch (Exception e) { return false; }