mirror of
https://github.com/GTNewHorizons/EnderIO.git
synced 2026-11-23 13:39:51 +00:00
#1377 Crash with latest release when checking Alloy smelter recipes
This commit is contained in:
1 parent
aa71e2c0ec
commit
38c5ef9b36
1 file changed
+2
-2
@@ -42,8 +42,8 @@ public final class OreDictionaryPreferences {
|
||||
}
|
||||
|
||||
public ItemStack getPreferred(ItemStack stack) {
|
||||
if(stack == null) {
|
||||
return null;
|
||||
if(stack == null || stack.getItem() == null) {
|
||||
return stack;
|
||||
}
|
||||
StackKey key = new StackKey(stack);
|
||||
if(stackCache.containsKey(key)) {
|
||||
|
||||
Reference in new issue
Block a user