diff options
Diffstat (limited to 'source/items/Item.cpp')
-rw-r--r-- | source/items/Item.cpp | 16 |
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
|