Skip to content

MOVE_TO_OTHER_INVENTORY not working as expected. #33

@fjsnow

Description

@fjsnow

Hi, I'm trying to create a menu where a player may move around items within the menu, but not between their real inventory.

slot.setClickOptions(
        ClickOptions.builder()
                .allow(ClickType.LEFT, ClickType.RIGHT)
                .allow(
                        InventoryAction.PICKUP_ONE,
                        InventoryAction.PICKUP_SOME,
                        InventoryAction.PICKUP_HALF,
                        InventoryAction.PICKUP_ALL,
                        InventoryAction.COLLECT_TO_CURSOR,
                        InventoryAction.SWAP_WITH_CURSOR,
                        InventoryAction.PLACE_ONE,
                        InventoryAction.PLACE_SOME,
                        InventoryAction.PLACE_ALL
                )
                .build()
)

To do this, I've explicitly allowed a range of Actions, however notably left out InventoryAction.MOVE_TO_OTHER_INVENTORY to leave as denied, however the user is still able to move items between the menu and their inventory.

I may be misunderstanding what InventoryAction.MOVE_TO_OTHER_INVENTORY means.

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions