SlotItemHandler#getMaxStackSize
call IItemHandlerModifiable#setStackInSlot
#1896
Labels
triage
Needs triaging and confirmation
Minecraft Version: 1.21.1
NeoForge Version: 21.1.97
Steps to Reproduce:
IItemHandler#setStackInSlot
is called 3 times (First: Air, Second: Dirt * 32, Third: Dirt * 33)Description of issue:
Below is a portion of the
SlotItemHandler#getMaxStackSize
code.As you can see, there is a part
This creates unintended side effects.
For example,
IItemHandler#onContentChanged
is called a total of 3 times.In my case, I want to update the recipe when a different item is inserted, just like the StoneCutter block works.
However, it didn't work properly because
ItemStack.Empty
is always inserted once when an item is changed in the slot.The text was updated successfully, but these errors were encountered: