#1153 Item conduits crash with invalid item stacks (one without an item assigned)

This commit is contained in:
CrazyPants committed 2014-10-26 14:57:52 +08:00
1 parent fd7caeb1ab
commit 2cc2c4de77
2 files changed
+3 -2

No files matched your search

@@ -171,7 +171,7 @@ public class NetworkedInventory {
}
private boolean doTransfer(ItemStack extractedItem, int slot, int maxExtract) {
if(extractedItem == null) {
if(extractedItem == null || extractedItem.getItem() == null) {
return false;
}
ItemStack toExtract = extractedItem.copy();