Waterlogged blocks retain their waterlogged state when moved with sticky pistons with short pulse
The bug
Waterlogged blocks retain their waterlogged state when moved with sticky pistons with short redstone pulse. Screenshots attached.
Code analysis
The same code that fixed MC-127474 in TileEntityPiston.update() needs to be added to TileEntityPiston.clearPistonTileEntity() to ensure pistons that update faster than 2 ticks (or are quick-pulsed) also set their waterlogged state to false.
if(iblockstate.hasProperty(BlockStateProperties.WATERLOGGED) && iblockstate.getProperty(BlockStateProperties.WATERLOGGED)) { iblockstate = (IBlockState) iblockstate.withProperty(BlockStateProperties.WATERLOGGED, Boolean.valueOf(false)); }
2018-05-24, 04:18 PM
2024-04-20, 09:19 PM
18
16
Minecraft 18w21a - 1.20.5 Release Candidate 2
Minecraft 18w21a, Minecraft 1.13-pre1, Minecraft 1.13-pre2, Minecraft 1.13-pre3, Minecraft 1.13-pre6, Minecraft 1.13-pre7, Minecraft 1.13-pre8, Minecraft 1.13, Minecraft 18w32a, Minecraft 1.13.1-pre1, Minecraft 1.13.1, Minecraft 1.13.2, Minecraft 18w49a, Minecraft 19w09a, Minecraft 19w13a, Minecraft 1.14 Pre-Release 5, Minecraft 1.14.1 Pre-Release 1, Minecraft 1.14.2, 1.15 Pre-release 4, 1.15.1, 1.15.2, 20w06a, 20w17a, 1.16 Release Candidate 1, 1.16, 21w16a, 1.17.1, 21w37a, 1.18.1 Release Candidate 2, 1.18.1, 1.20.4, 1.20.5 Release Candidate 2
-