#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

+2 -1
View File
@@ -10,7 +10,8 @@ Changes
Bugs
- Fixed Transceivers losing items when single player worlds reloaded without restarting MC
- More than one stack of quartz can now be placed in alloy smelter when making fused quartz
- #1150 Crash when Farming Station Error trying to plant Pam's Mob Seeds (nb, they dont work, but it wont crash)
- #1150 Crash when Farming Station Error trying to plant Pam's Mob Seeds (nb, they don't work, but it wont crash)
- #1153 Item conduits crash with invalid item stacks (one without an item assigned)
------------------------------------------------------
Version 2.1.6
@@ -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();