Skip to content

ItemUtils: Update consumeItem to support dual-wielding #41

@prokopyl

Description

@prokopyl

Right now the ItemUtils.consumeItem() helper method internally uses the getItemInHand Bukkit method, now deprecated because of dual-wielding.

Usages of getItemInHand should be removed, and the consumeItem() method should be changed to properly support dual-wielding, probably through an extra argument.

Metadata

Metadata

Assignees

No one assigned

    Labels

    M ⋅ Outdated Bukkit APIMiscelaneous – Tracks removal of deprecated/outdated/useless code due to a newer Bukkit API

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions