Skip to content

Commit

Permalink
null check
Browse files Browse the repository at this point in the history
  • Loading branch information
GlodBlock committed May 31, 2024
1 parent 7661a5a commit 16d7df2
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/main/java/appeng/fluids/util/AENetworkFluidInventory.java
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,9 @@ public AENetworkFluidInventory(Supplier<IStorageGrid> networkSupplier, IActionSo

@Override
public int fill(final FluidStack fluid, final boolean doFill) {
if (fluid == null || fluid.amount <= 0) {
return 0;
}
IStorageGrid storage = supplier.get();
if (storage != null) {
int originAmt = fluid.amount;
Expand Down

0 comments on commit 16d7df2

Please sign in to comment.