Skip to content

Commit

Permalink
BrewerMenu: Fix off-by-one error in quickMove
Browse files Browse the repository at this point in the history
Fixes #309.
  • Loading branch information
Juuxel committed May 5, 2023
1 parent e40772f commit 369bd3e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion common/src/main/kotlin/juuxel/adorn/menu/BrewerMenu.kt
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ class BrewerMenu(
result = stack.copy()

if (index <= BrewerBlockEntity.FLUID_CONTAINER_SLOT) {
if (!insertItem(stack, 3, slots.size, true)) {
if (!insertItem(stack, BrewerBlockEntity.FLUID_CONTAINER_SLOT + 1, slots.size, true)) {
return ItemStack.EMPTY
}
} else {
Expand Down

0 comments on commit 369bd3e

Please sign in to comment.