Shulker box stack size is now configurable (#1254)

This commit is contained in:
Thomas Baum authored and GitHub committed 2022-01-12 23:10:14 +01:00
1 parent 3f6ddc43e5
commit 068a42292f
5 files changed
+47 -14

No files matched your search

@@ -18,13 +18,13 @@ public class Slot_stackableSBoxesMixin {
))
private int getMaxCountForSboxesInSlot(Slot slot, ItemStack stack)
{
if (CarpetSettings.stackableShulkerBoxes &&
if (CarpetSettings.shulkerBoxStackSize > 1 &&
stack.getItem() instanceof BlockItem &&
((BlockItem)stack.getItem()).getBlock() instanceof ShulkerBoxBlock &&
!InventoryHelper.shulkerBoxHasItems(stack)
)
{
return CarpetSettings.SHULKER_STACK_SIZE;
return CarpetSettings.shulkerBoxStackSize;
}
return slot.getMaxItemCount(stack);
}