mirror of
https://github.com/GTNewHorizons/EnderIO.git
synced 2026-11-26 06:53:24 +00:00
#591 Work around to avoid unreproducible crash.
This commit is contained in:
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
|
||||
|
||||
Reference in new issue
Block a user