diff --git a/src/main/java/evilcraft/api/fluids/SingleUseTank.java b/src/main/java/evilcraft/api/fluids/SingleUseTank.java index 04cf329a0c..e04f70f2ba 100644 --- a/src/main/java/evilcraft/api/fluids/SingleUseTank.java +++ b/src/main/java/evilcraft/api/fluids/SingleUseTank.java @@ -94,6 +94,7 @@ public boolean canTankAccept(Fluid fluid) { * @return If this tank can completely contain the given fluid. */ public boolean canCompletelyFill(FluidStack fluidStack) { - return getFluidAmount() + fluidStack.amount <= getCapacity(); + int amount = (fluidStack != null) ? fluidStack.amount : 0; + return getFluidAmount() + amount <= getCapacity(); } }