diff options
author | madmaxoft <github@xoft.cz> | 2013-11-10 18:41:26 +0100 |
---|---|---|
committer | madmaxoft <github@xoft.cz> | 2013-11-10 18:41:26 +0100 |
commit | fe070129526178b8a0adbd3b64fc8ae1630c6a7a (patch) | |
tree | edf519bb35ea1e8b9135ea5e171650d290366734 /source/Item.cpp | |
parent | Protocol 1.7: Attempt at fixing SoundParticleEffect packet. (diff) | |
download | cuberite-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.cpp | 9 |
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 { |