From 42a7036393c9e77bc8c28e80bc8fb7ba6a1175b7 Mon Sep 17 00:00:00 2001 From: LexManos Date: Wed, 16 Nov 2016 16:06:52 -0800 Subject: [PATCH] Fix ItemStackHandler's constructor ignoring size. Closes #3386 --- src/main/java/net/minecraftforge/items/ItemStackHandler.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/net/minecraftforge/items/ItemStackHandler.java b/src/main/java/net/minecraftforge/items/ItemStackHandler.java index 18b211a0f..91f6c712b 100644 --- a/src/main/java/net/minecraftforge/items/ItemStackHandler.java +++ b/src/main/java/net/minecraftforge/items/ItemStackHandler.java @@ -39,7 +39,7 @@ public class ItemStackHandler implements IItemHandler, IItemHandlerModifiable, I public ItemStackHandler(int size) { - stacks = NonNullList.func_191196_a(); + stacks = NonNullList.func_191197_a(size, ItemStack.field_190927_a); } public ItemStackHandler(NonNullList stacks)