summaryrefslogtreecommitdiffstats
path: root/source/Item.cpp
diff options
context:
space:
mode:
authormadmaxoft <github@xoft.cz>2013-11-10 18:41:26 +0100
committermadmaxoft <github@xoft.cz>2013-11-10 18:41:26 +0100
commitfe070129526178b8a0adbd3b64fc8ae1630c6a7a (patch)
treeedf519bb35ea1e8b9135ea5e171650d290366734 /source/Item.cpp
parentProtocol 1.7: Attempt at fixing SoundParticleEffect packet. (diff)
downloadcuberite-fe070129526178b8a0adbd3b64fc8ae1630c6a7a.tar
cuberite-fe070129526178b8a0adbd3b64fc8ae1630c6a7a.tar.gz
cuberite-fe070129526178b8a0adbd3b64fc8ae1630c6a7a.tar.bz2
cuberite-fe070129526178b8a0adbd3b64fc8ae1630c6a7a.tar.lz
cuberite-fe070129526178b8a0adbd3b64fc8ae1630c6a7a.tar.xz
cuberite-fe070129526178b8a0adbd3b64fc8ae1630c6a7a.tar.zst
cuberite-fe070129526178b8a0adbd3b64fc8ae1630c6a7a.zip
Diffstat (limited to 'source/Item.cpp')
-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
{