Skip to content

Commit

Permalink
Update menus.md
Browse files Browse the repository at this point in the history
  • Loading branch information
starforcraft authored Jan 3, 2025
1 parent 00bd016 commit a04363a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/gui/menus.md
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ public ItemStack quickMoveStack(Player player, int quickMovedSlotIndex) {
// The quick moved slot stack
ItemStack quickMovedStack = ItemStack.EMPTY;
// The quick moved slot
Slot quickMovedSlot = this.slots.get(quickMovedSlotIndex)
Slot quickMovedSlot = this.slots.get(quickMovedSlotIndex);

// If the slot is in the valid range and the slot is not empty
if (quickMovedSlot != null && quickMovedSlot.hasItem()) {
Expand All @@ -215,7 +215,7 @@ public ItemStack quickMoveStack(Player player, int quickMovedSlotIndex) {
}

// Perform logic on result slot quick move
slot.onQuickCraft(rawStack, quickMovedStack);
quickMovedSlot.onQuickCraft(rawStack, quickMovedStack);
}
// Else if the quick move was performed on the player inventory or hotbar slot
else if (quickMovedSlotIndex >= 5 && quickMovedSlotIndex < 41) {
Expand Down

1 comment on commit a04363a

@neoforged-pages-deployments
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Deploying with Cloudflare Pages

Name Result
Last commit: a04363aaf7784b9c1a2af887f96c9210117d42e8
Status: ✅ Deploy successful!
Preview URL: https://0a0df125.neoforged-docs-previews.pages.dev
PR Preview URL: https://pr-217.neoforged-docs-previews.pages.dev

Please sign in to comment.