Skip to content

Commit

Permalink
Use max value for compat with mods that increase the stack size.
Browse files Browse the repository at this point in the history
  • Loading branch information
MerchantPug committed Aug 25, 2024
1 parent a011465 commit 627412a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ public ItemVariant getVariantInSlot(int slot) {
}

public int getSlotLimit(int slot) {
return getStackInSlot(slot).getOrDefault(DataComponents.MAX_STACK_SIZE, 99);
return getStackInSlot(slot).getOrDefault(DataComponents.MAX_STACK_SIZE, Integer.MAX_VALUE);
}

/**
Expand Down

0 comments on commit 627412a

Please sign in to comment.