#591 Work around to avoid unreproducible crash.

This commit is contained in:
CrazyPants committed 2014-04-13 14:21:14 +08:00
1 parent 4e09b6e949
commit 0aaf57c200
1 file changed
+6 -2
@@ -16,10 +16,14 @@ public class OreDictionaryRecipeInput extends RecipeInput {
@Override
public boolean isInput(ItemStack test) {
if(test == null) {
if(test == null || oreId < 0) {
return false;
}
try { //work around for issue #591
return OreDictionary.getOreID(test) == oreId;
} catch (Exception e) {
return false;
}
return OreDictionary.getOreID(test) == oreId;
}
@Override