mirror of
https://github.com/GTNewHorizons/EnderIO.git
synced 2026-11-25 06:24:24 +00:00
Fixed items with multiple ore dict. entries not working in recipes correctly.
This commit is contained in:
1 parent
b36b9e9c57
commit
70b8a6e017
1 file changed
+11
-2
@@ -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;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user