From b68163582c26dca5dc9f760344f10ee104f0ccc9 Mon Sep 17 00:00:00 2001 From: "madmaxoft@gmail.com" Date: Sat, 11 Aug 2012 19:45:03 +0000 Subject: Added some stackable items in cItemHandler::GetMaxStackSize() git-svn-id: http://mc-server.googlecode.com/svn/trunk@728 0a769ca7-a7f5-676a-18bf-c427514a06d6 --- source/items/Item.cpp | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/source/items/Item.cpp b/source/items/Item.cpp index 47c0852e9..fbc862d7d 100644 --- a/source/items/Item.cpp +++ b/source/items/Item.cpp @@ -245,6 +245,21 @@ char cItemHandler::GetMaxStackSize(void) return 64; } + switch (m_ItemID) + { + case E_ITEM_APPLE: return 64; + case E_ITEM_ARROW: return 64; + case E_ITEM_BLAZE_POWDER: return 64; + case E_ITEM_BLAZE_ROD: return 64; + case E_ITEM_BONE: return 64; + case E_ITEM_BOOK: return 64; + case E_ITEM_BOWL: return 64; + case E_ITEM_BREAD: return 64; + case E_ITEM_BROWN_MUSHROOM: return 64; + case E_ITEM_BUCKET: return 1; // TODO: change this to 16 when turning compatibility to 1.3 + case E_ITEM_COAL: return 64; + case E_ITEM_DIAMOND: return 64; + } // By default items don't stack: return 1; } -- cgit v1.2.3