Skip to content

BlockType#isOccluding is incorrectly handled #13790

@ShaneBeee

Description

@ShaneBeee

Expected behavior

BlockType#isOccluding should return whether the block is occluding

Observed/Actual behavior

I was alerted in the Skript community it was not working on an Observer block.
So I did a quick test:
Image

from CraftBlockType:

@Override
public boolean isOccluding() {
    return this.getHandle().defaultBlockState().isRedstoneConductor(EmptyBlockGetter.INSTANCE, BlockPos.ZERO);
}

I would assume this should be:

@Override
public boolean isOccluding() {
    return this.getHandle().defaultBlockState().canOcclude();
}

Steps/models to reproduce

someone in the Skript community pointed this out to me, see pic/notes above.

Plugin and Datapack List

[22:24:23 INFO]: ℹ Server Plugins (9):
[22:24:23 INFO]: Paper Plugins (4):
[22:24:23 INFO]: - CorePlugin, SkBee, SkBriggy, SkNMS
[22:24:23 INFO]: Bukkit Plugins (5):
[22:24:23 INFO]: - BeeConomy, PermissionsEx, Skript, skript-reflect, Vault

Paper version

Paper version 26.1.2-5-main@d61d8df

Other

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    status: acceptedDisputed bug is accepted as valid or Feature accepted as desired to be added.

    Type

    No fields configured for Bug.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions