Skip to content

Commit

Permalink
Fix #837
Browse files Browse the repository at this point in the history
  • Loading branch information
IThundxr committed Aug 24, 2024
1 parent 00d2479 commit 643627a
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@
import net.minecraft.world.level.block.LiquidBlock;
import net.minecraft.world.level.block.state.BlockState;
import net.minecraft.world.level.block.state.properties.BlockStateProperties;
import net.minecraft.world.level.material.FlowingFluid;
import net.minecraft.world.level.material.FluidState;
import net.minecraft.world.level.material.Fluids;
import net.minecraft.world.phys.AABB;
Expand Down Expand Up @@ -192,6 +193,8 @@ private boolean provideFluidToSpace(FluidStack fluid, TransactionContext ctx) {
return false;
if (!FluidHelper.hasBlockState(fluid.getFluid()) || fluid.getFluid().is(Milk.MILK_FLUID_TAG)) // fabric: milk logic is different
return true;
if (!(fluid.getFluid() instanceof FlowingFluid))
return false;

// fabric: note - this is possibly prone to issues but follows what forge does.
// collisions completely ignore simulation / transactions.
Expand Down

0 comments on commit 643627a

Please sign in to comment.