#1377 Crash with latest release when checking Alloy smelter recipes

This commit is contained in:
CrazyPants committed 2014-12-10 12:39:46 +08:00
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)) {