mirror of
https://github.com/GTNewHorizons/EnderCore.git
synced 2026-11-14 01:04:18 +00:00
Fix: NPE on kamikaze fluid container
This commit is contained in:
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];
|
||||
|
||||
Reference in new issue
Block a user