mirror of
https://github.com/MinecraftForge/MinecraftForge.git
synced 2026-11-18 19:39:22 +00:00
Fix swapped variables being passes to ItemStackedOnOtherEvent Closes #10781
This commit is contained in:
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;
|
||||
|
||||
Reference in new issue
Block a user