Skip to content

Conversation

@throckmorpheus
Copy link
Contributor

When you placed a different slab type onto a waterlogged slab to create a double slab, then broke the slab that hadn't been waterlogged, the remaining slab would return to a waterlogged state (but not flow out until updated).

This fixes it so the water is removed, like what happens with two slabs of the same type (and vertical slabs, which never had this issue).

@throckmorpheus throckmorpheus changed the title Fix bug with mixed slabs and waterlogging (1.21.1) Fix bug with mixed slabs and waterlogging Oct 4, 2025
@CJMinecraft01 CJMinecraft01 added the 1.21.x MC 1.21.x label Jan 3, 2026
Copy link
Owner

@CJMinecraft01 CJMinecraft01 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for fixing this! Similar to #318 in feedback :)

Comment on lines -142 to +144
final var slabState = slabContainer.getBlockState();
var slabState = slabContainer.getBlockState();
slabState = slabState.setValue(BlockStateProperties.WATERLOGGED, false);
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Similar to #318, we should use trySetValue here since we cannot assume the state has a WATERLOGGED property. I think we also want this to be a final var here so can just do it in one line.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

1.21.x MC 1.21.x

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants