Merge pull request #408 from Deatrathias/master

Using an ItemStack-sensitive version of getContainerItem for consumeItem
This commit is contained in:
CovertJaguar 2012-11-08 09:45:17 -08:00
commit 1e5d6e0966

View file

@ -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 {