Skip to content

Commit

Permalink
You can no longer bucket place with a bucket that's only half full
Browse files Browse the repository at this point in the history
  • Loading branch information
Sollace committed Jun 20, 2024
1 parent 6d1e3dc commit 72ca62c
Showing 1 changed file with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -177,9 +177,11 @@ private static boolean placeFluid(FluidState fluid, @Nullable PlayerEntity playe
world.breakBlock(pos, true);
}

if (world.setBlockState(pos, fluid.getBlockState(), Block.NOTIFY_ALL | Block.REDRAW_ON_MAIN_THREAD) || state.getFluidState().isStill()) {
playEmptyingSound(fluid.getFluid(), player, world, pos);
return true;
if (world.getBlockState(pos).isOf(fluid.getBlockState().getBlock())) {
if (world.setBlockState(pos, fluid.getBlockState(), Block.NOTIFY_ALL | Block.REDRAW_ON_MAIN_THREAD) || state.getFluidState().isStill()) {
playEmptyingSound(fluid.getFluid(), player, world, pos);
return true;
}
}
return false;
}
Expand Down

0 comments on commit 72ca62c

Please sign in to comment.