summaryrefslogtreecommitdiffstats
path: root/source/Item.cpp
diff options
context:
space:
mode:
authormborland <matt.borland1@gmail.com>2013-11-11 00:33:58 +0100
committermborland <matt.borland1@gmail.com>2013-11-11 00:33:58 +0100
commit3710d423acba9546adf441782eb6a17a081c9320 (patch)
tree9ad19a165d324101fd3c8a3c42665d397d77ee08 /source/Item.cpp
parentVC2013 (diff)
parentFixed cRoot::FindAndDoWithPlayer(). (diff)
downloadcuberite-3710d423acba9546adf441782eb6a17a081c9320.tar
cuberite-3710d423acba9546adf441782eb6a17a081c9320.tar.gz
cuberite-3710d423acba9546adf441782eb6a17a081c9320.tar.bz2
cuberite-3710d423acba9546adf441782eb6a17a081c9320.tar.lz
cuberite-3710d423acba9546adf441782eb6a17a081c9320.tar.xz
cuberite-3710d423acba9546adf441782eb6a17a081c9320.tar.zst
cuberite-3710d423acba9546adf441782eb6a17a081c9320.zip
Diffstat (limited to '')
-rw-r--r--source/Item.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/source/Item.cpp b/source/Item.cpp
index 5e0beb028..25664e4df 100644
--- a/source/Item.cpp
+++ b/source/Item.cpp
@@ -122,6 +122,15 @@ bool cItem::IsFullStack(void) const
+char cItem::GetMaxStackSize(void) const
+{
+ return ItemHandler(m_ItemType)->GetMaxStackSize();
+}
+
+
+
+
+
/// Returns the cItemHandler responsible for this item type
cItemHandler * cItem::GetHandler(void) const
{