mojira.dev
MC-9186

Water does not leak through leaves and regular stairs but upside down stairs

Water (still or flowing) does not drip through leaf blocks, even though rain does.

Water also seems not to penetrate certain other blocks that it should. These are all transparent variants as far as I can tell. Stairs - stop leaks, upside down stairs - leak; upper slabs - leak, lower slabs - don't leak; ice - doesn't leak; and even water itself, if you have a free-floating water block, it doesn't so much as dribble.

See also MC-8858

Linked issues

Attachments

Comments 26

Confirmed.

Affects 13w09c. Related to MC-1390 (seems the bugs are just few lines apart). And fix incoming.

Fix

BlockFluid.randomDisplayTick()

...
        if (random.nextInt(10) == 0
                //&& world.doesBlockHaveSolidTopSurface(x, y - 1, z)
                && world.getBlockMaterial(x, y - 1, z).blocksMovement()
                && !world.getBlockMaterial(x, y - 2, z).blocksMovement()) {
            var21 = (double) ((float) x + random.nextFloat());
            var22 = (double) y - 1.05D; // <== MC-1390 ?
            var23 = (double) ((float) z + random.nextFloat());

            if (this.blockMaterial == Material.water) {
                world.spawnParticle("dripWater", var21, var22, var23, 0.0D, 0.0D, 0.0D);
            } else {
                world.spawnParticle("dripLava", var21, var22, var23, 0.0D, 0.0D, 0.0D);
            }
        }

Fix tested on 1.4.7, also with fences, iron bars, glass block. Not tested on everything, but if something does not work right, that just means a bit more logic into that if.

Daniel Lunsford

I have a leaky roof of brick stairs, rightside-up, dripping from the upper seam (not the lower, apparently). FWIW, it seems similar to the way light "leaks" through the seams on stairs as well. v1.5

Edit: Actually, it might be more accurate to say that it drips from the joins where there is an air-block to either side of it

Further Edit: It occurs to me now that I did NOT see this when the roof was wood, only after I switched to brick

That description is a bit difficult to understand, could you attach a screenshot which shows the setup?

16 more comments

Confirmed for 18w20c

Confirmed for 18w22c

Confirmed for 1.13-pre2

Confirmed for 1.13-pre5

Fixed in 1.13-pre7

Simons Mith

(Unassigned)

Confirmed

dripping, leak, leaves, stairs, water

Snapshot 13w05b, Snapshot 13w09a, Snapshot 13w09b, Snapshot 13w09c, Minecraft 1.5, ..., Minecraft 18w11a, Minecraft 18w20c, Minecraft 18w22c, Minecraft 1.13-pre2, Minecraft 1.13-pre5

Minecraft 1.13-pre7

Retrieved