Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

import com.simibubi.create.foundation.item.ItemHelper;

import net.minecraft.core.component.DataComponents;
import net.minecraft.world.item.ItemStack;

import net.neoforged.neoforge.items.IItemHandler;
Expand Down Expand Up @@ -45,7 +46,7 @@ public ItemStack extractItem(int slot, int amount, boolean simulate) {

@Override
public int getSlotLimit(int slot) {
return Math.min(getStackInSlot(slot).getMaxStackSize(), 64);
return Math.min(getStackInSlot(slot).getOrDefault(DataComponents.MAX_STACK_SIZE, 64), 64);
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ public final class CreateStandardRecipeGen extends BaseRecipeProvider {
BOUND_CARDBOARD_BLOCK = create(AllBlocks.BOUND_CARDBOARD_BLOCK).returns(1)
.unlockedBy(I::cardboard)
.viaShapeless(b -> b.requires(AllBlocks.CARDBOARD_BLOCK.get())
.requires(Items.STRING)),
.requires(Tags.Items.STRINGS)),

CARDBOARD_FROM_BLOCK = create(AllItems.CARDBOARD).withSuffix("_from_block")
.returns(4)
Expand Down