Incorrect Crafting Matrix Result in Bukkit#craftItemResult #12300
Labels
scope: api
status: accepted
Disputed bug is accepted as valid or Feature accepted as desired to be added.
version: 1.21.4
Game version 1.21.4
Expected behavior
Calling
craftItemResult
with a crafting matrix that forms a valid recipe should return anItemCraftResult
wheregetResultingMatrix()
reflects the correct state of the crafting grid after the operation.For example, given the following input:
(H = Honey Bottle, A = Air, G = Glass Bottle)
The expected getResultingMatrix() should be:
Where honey bottles have been replaced by glass bottles as expected.
Similarly, attempting to uncraft a gold block into 9 gold ingots with the input:
(B = Gold Block, A = Air)
Should result in:
Where the gold block has been removed as expected.
Observed/Actual behavior
Instead of returning the expected matrices,
getResultingMatrix()
returns:For honey bottles:
Where a honey bottle remains in the matrix incorrectly and one glass bottle is incorrectly placed.
For gold block uncrafting:
Where the gold block is not removed.
Steps/models to reproduce
craftItemResult
with the following crafting matrix for honey bottles:resultingMatrix
does not correctly replace honey bottles with glass bottles.craftItemResult
with a crafting matrix for gold block uncrafting:resultingMatrix
after the operation.Plugin and Datapack List
Datapacks: none
Plugins: One plugin (used to reproduce this issue), only contains the above written code inside a
PlayerJoinEvent
handler.Paper version
Other
The text was updated successfully, but these errors were encountered: