Skip to content

Items in crafting table get duplicated if result slot is set manually #1822

@Frogperson

Description

@Frogperson

What behaviour is expected:

If there is no recipe for the items in the crafting grid, taking items out of the result slot of the crafting inventory should leave the items in the crafting grid alone.

What behaviour is observed:

After taking an item out of the result slot, the items in the crafting grid are first decremented by one and then doubled.
https://i.imgur.com/vZUlwIN.png
https://i.imgur.com/k0hneCD.png

Steps/models to reproduce:

Put a stack of 2-64 items into a crafting table
Set the result slot using either .setResult() or .setItem()
Take the item of the result slot while leaving the crafting grid alone

Plugin list:

Only the plugin I'm using to test this

Paper build number:

504

Metadata

Metadata

Assignees

No one assigned

    Labels

    status: acceptedDisputed bug is accepted as valid or Feature accepted as desired to be added.type: bugSomething doesn't work as it was intended to.version: 1.19Game version 1.19

    Type

    Projects

    Status

    ✅ Accepted

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions