summaryrefslogtreecommitdiffstats
path: root/source/items/Item.cpp
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--source/items/Item.cpp16
1 files changed, 16 insertions, 0 deletions
diff --git a/source/items/Item.cpp b/source/items/Item.cpp
index 35a612434..47c0852e9 100644
--- a/source/items/Item.cpp
+++ b/source/items/Item.cpp
@@ -237,6 +237,22 @@ void cItemHandler::OnFoodEaten(cWorld *a_World, cPlayer *a_Player, cItem *a_Item
+char cItemHandler::GetMaxStackSize(void)
+{
+ if (m_ItemID < 256)
+ {
+ // All blocks can stack up to 64
+ return 64;
+ }
+
+ // By default items don't stack:
+ return 1;
+}
+
+
+
+
+
bool cItemHandler::IsTool()
{
return