mojira.dev
MC-308735

MANGROVE_ROOTS Block has a duplicate property ".noOcclusion()"

In net.minecraft.world.level.block.Blocks the MANGROVE_ROOTS block repeats .noOcclusion(). Snippet from vineflower:

    public static final Block MANGROVE_ROOTS = register(
        "mangrove_roots",
        MangroveRootsBlock::new,
        BlockBehaviour.Properties.of()
            .mapColor(MapColor.PODZOL)
            .instrument(NoteBlockInstrument.BASS)
            .strength(0.7F)
            .sound(SoundType.MANGROVE_ROOTS)
            .noOcclusion()
            .isSuffocating(Blocks::never)
            .isViewBlocking(Blocks::never)
            .noOcclusion()
            .ignitedByLava()
    );

This could be fixed by removing 1 of them:

    public static final Block MANGROVE_ROOTS = register(
        "mangrove_roots",
        MangroveRootsBlock::new,
        BlockBehaviour.Properties.of()
            .mapColor(MapColor.PODZOL)
            .instrument(NoteBlockInstrument.BASS)
            .strength(0.7F)
            .sound(SoundType.MANGROVE_ROOTS)
            .noOcclusion()
            .isSuffocating(Blocks::never)
            .isViewBlocking(Blocks::never)
            .ignitedByLava()
    );

Comments 1

Thank you for your report!
However, this issue is Invalid.

Issues must have an impact on gameplay to be considered valid. Mistakes like typos in the code are not bugs.

Quick Links:
📓 Bug Tracker Guidelines – 💬 Community Support – 📧 Mojang Support (Technical Issues) – 📧 Microsoft Support (Account Issues)
📓 Project Summary – ✍️ Feedback and Suggestions – 📖 Game Wiki

backspace256

(Unassigned)

Unconfirmed

26.1.2

Retrieved