From e471d92fa069f339c5016ba7415504b958de3ede Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Salom=C3=A3o?= Date: Wed, 31 Mar 2021 15:47:33 -0300 Subject: [PATCH] revert changes due to NPE --- .../electric/multiblockpart/MetaTileEntityFluidHatch.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/main/java/gregtech/common/metatileentities/electric/multiblockpart/MetaTileEntityFluidHatch.java b/src/main/java/gregtech/common/metatileentities/electric/multiblockpart/MetaTileEntityFluidHatch.java index 5e0cbcb898..b8034db138 100644 --- a/src/main/java/gregtech/common/metatileentities/electric/multiblockpart/MetaTileEntityFluidHatch.java +++ b/src/main/java/gregtech/common/metatileentities/electric/multiblockpart/MetaTileEntityFluidHatch.java @@ -25,6 +25,7 @@ import net.minecraft.util.NonNullList; import net.minecraft.util.ResourceLocation; import net.minecraft.world.World; +import net.minecraftforge.fluids.FluidTank; import net.minecraftforge.fluids.IFluidTank; import net.minecraftforge.items.IItemHandlerModifiable; import net.minecraftforge.items.ItemStackHandler; @@ -101,8 +102,8 @@ private int getInventorySize() { @Override protected void initializeInventory() { super.initializeInventory(); - NotifiableFluidTank notifiableFluidTank = new NotifiableFluidTank(getInventorySize(),getController(),isExportHatch); - this.fluidTankHandler = new FluidTankList(false, notifiableFluidTank); + FluidTank fluidTank = new NotifiableFluidTank(getInventorySize(),getController(),isExportHatch); + this.fluidTankHandler = new FluidTankList(false, fluidTank); this.exportFluids = fluidTankHandler; this.importFluids = isExportHatch ? new FluidTankList(false) : fluidTankHandler; this.fluidInventory = fluidTankHandler;