Skip to content

WrappedBlockData appears to use incorect parameters when invoking CraftMagicNumbers.toLegacyData #3509

@EOT3000

Description

@EOT3000

This issue is not solved in a development build
It appears to not be ( https://github.com/dmulloy2/ProtocolLib/blob/master/src/main/java/com/comphenix/protocol/wrappers/WrappedBlockData.java#L144 )

Describe the bug
org.bukkit.craftbukkit.util.CraftMagicNumbers#toLegacyData requires a single argument (NMS BlockState), while com.comphenix.protocol.wrappers.WrappedBlockData.NewBlockData#setTypeAndData passes two arguments (Material and block data byte).

Screenshots

Signature of bukkit method
Image

Exception
Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions