Skip to content

Commit

Permalink
Fix world fluid exporter voiding non-placable fluids, Closes #323
Browse files Browse the repository at this point in the history
  • Loading branch information
rubensworks committed Feb 3, 2025
1 parent 68e1da4 commit 868f66e
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,9 @@ public boolean isFluidValid(int tank, @Nonnull FluidStack stack) {
public int fill(FluidStack resource, FluidAction action) {
Fluid fluid = resource.getFluid();
BlockState block = fluid.getFluidType().getBlockForFluidState(world, blockPos, fluid.defaultFluidState());
if (block.isAir()) {
return 0;
}
return new BlockWrapper(block, world, blockPos).fill(resource, action);
}

Expand Down

0 comments on commit 868f66e

Please sign in to comment.