From 416916502c335ffba82b88069195185a96d71a4c Mon Sep 17 00:00:00 2001 From: Deatrathias Date: Thu, 8 Nov 2012 00:54:17 +0100 Subject: [PATCH] ItemStack-sensitive getContainer --- common/buildcraft/core/utils/Utils.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/common/buildcraft/core/utils/Utils.java b/common/buildcraft/core/utils/Utils.java index 5beebabf..893c4585 100644 --- a/common/buildcraft/core/utils/Utils.java +++ b/common/buildcraft/core/utils/Utils.java @@ -481,8 +481,8 @@ public class Utils { public static ItemStack consumeItem(ItemStack stack) { if (stack.stackSize == 1) { - if (stack.getItem().getContainerItem() != null) - return new ItemStack(stack.getItem().getContainerItem(), 1); + if (stack.getItem().hasContainerItem()) + return stack.getItem().getContainerItemStack(stack); else return null; } else {