Fix swapped variables being passes to ItemStackedOnOtherEvent Closes #10781

This commit is contained in:
LexManos committed 2026-03-05 12:54:17 -08:00
1 parent da4fd10ee8
commit 39683f28dd
1 file changed
+1 -1
@@ -4,7 +4,7 @@
ItemStack itemstack10 = this.getCarried();
p_150434_.updateTutorialInventoryAction(itemstack10, slot7.getItem(), clickaction);
if (!this.tryItemClickBehaviourOverride(p_150434_, clickaction, slot7, itemstack9, itemstack10)) {
+ if (!net.minecraftforge.event.ForgeEventFactory.onItemStackedOn(itemstack9, itemstack10, slot7, clickaction, p_150434_, createCarriedSlotAccess()))
+ if (!net.minecraftforge.event.ForgeEventFactory.onItemStackedOn(itemstack10, itemstack9, slot7, clickaction, p_150434_, createCarriedSlotAccess()))
if (itemstack9.isEmpty()) {
if (!itemstack10.isEmpty()) {
int i3 = clickaction == ClickAction.PRIMARY ? itemstack10.getCount() : 1;