Skip to content

Commit

Permalink
revert changes due to NPE
Browse files Browse the repository at this point in the history
  • Loading branch information
PrototypeTrousers committed Mar 31, 2021
1 parent 4110de6 commit e471d92
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit e471d92

Please sign in to comment.