summaryrefslogtreecommitdiffstats
path: root/source/items/Item.cpp
diff options
context:
space:
mode:
authormadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2012-08-11 21:45:03 +0200
committermadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2012-08-11 21:45:03 +0200
commitb68163582c26dca5dc9f760344f10ee104f0ccc9 (patch)
tree5e7aa6eae70d69325371e8e4984dc3f0729c1804 /source/items/Item.cpp
parentAdded functions for armor item categories (diff)
downloadcuberite-b68163582c26dca5dc9f760344f10ee104f0ccc9.tar
cuberite-b68163582c26dca5dc9f760344f10ee104f0ccc9.tar.gz
cuberite-b68163582c26dca5dc9f760344f10ee104f0ccc9.tar.bz2
cuberite-b68163582c26dca5dc9f760344f10ee104f0ccc9.tar.lz
cuberite-b68163582c26dca5dc9f760344f10ee104f0ccc9.tar.xz
cuberite-b68163582c26dca5dc9f760344f10ee104f0ccc9.tar.zst
cuberite-b68163582c26dca5dc9f760344f10ee104f0ccc9.zip
Diffstat (limited to '')
-rw-r--r--source/items/Item.cpp15
1 files changed, 15 insertions, 0 deletions
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;
}