Fix: NPE on kamikaze fluid container

This commit is contained in:
HenryLoenwind committed 2015-09-14 00:45:12 +02:00
1 parent 8bdcb36170
commit 5d67710dbc
1 file changed
+4
@@ -386,6 +386,10 @@ public class FluidUtil {
entityPlayer.inventory.setInventorySlotContents(entityPlayer.inventory.currentItem, fill.remainder.itemStack);
}
if (fill.result.itemStack == null) {
return true;
}
if (fill.result.itemStack.isStackable()) {
for (int i = 0; i < entityPlayer.inventory.mainInventory.length; i++) {
ItemStack inventoryItem = entityPlayer.inventory.mainInventory[i];