Merge pull request #7 from GlodBlock/npe

fix npe from getItem()
This commit is contained in:
Martin Robertz authored and GitHub committed 2022-08-05 21:08:45 +07:00
commit 1998750489
1 file changed
+1 -1
@@ -16,7 +16,7 @@ public class FluidConvertingInventoryCrafting extends InventoryCrafting {
@Override
public void setInventorySlotContents(int index, ItemStack stack) {
if (stack.getItem() instanceof ItemFluidDrop) {
if (stack != null && stack.getItem() instanceof ItemFluidDrop) {
FluidStack fluid = ItemFluidDrop.getFluidStack(stack);
if (fluid != null) {
super.setInventorySlotContents(index, ItemFluidPacket.newStack(new FluidStack(fluid, stack.stackSize)));