You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
is it intentional that these arguments are switched?
privatebooleantryItemClickBehaviourOverride(Playerplayer, ClickActionaction, Slotslot, ItemStackclickedItem, ItemStackcarriedItem) {
// Neo: Fire the ItemStackedOnOtherEvent, and return true if it was cancelled (meaning the event was handled). Returning true will trigger the container to stop processing further logic.if (net.neoforged.neoforge.common.CommonHooks.onItemStackedOn(clickedItem, carriedItem, slot, action, player, createCarriedSlotAccess())) {
when i click an armor item into a slot the carrieditem in the event is empty and the stackedonitem has the item
i'd assume the container hasn't been set yet, so it should be the other way around
The current 1.21.x still seems to have the problem
The carried item is the second argument in the tryItemClickBehaviourOverride method and gets set as the second argument for the event
But the second argument for the event is the stacked-on item
The text was updated successfully, but these errors were encountered:
See https://discord.com/channels/313125603924639766/1249305774987939900/1300732536225402890
and https://discord.com/channels/313125603924639766/1249305774987939900/1262353590710829167
Original text:
is it intentional that these arguments are switched?
when i click an armor item into a slot the carrieditem in the event is empty and the stackedonitem has the item
i'd assume the container hasn't been set yet, so it should be the other way around
The current
1.21.x
still seems to have the problemThe carried item is the second argument in the
tryItemClickBehaviourOverride
method and gets set as the second argument for the eventBut the second argument for the event is the stacked-on item
The text was updated successfully, but these errors were encountered: