diff options
author | madmaxoft <github@xoft.cz> | 2013-11-10 21:42:56 +0100 |
---|---|---|
committer | madmaxoft <github@xoft.cz> | 2013-11-10 21:42:56 +0100 |
commit | dde491ee0e3663440f05165f140e9086f68c69bf (patch) | |
tree | 4bec6ba6a6a60ff53fe3f2c7c9990fd4059cde5e /source/Item.cpp | |
parent | Renamed variables in cWolf. (diff) | |
parent | Implemented inventory dblclick. (diff) | |
download | cuberite-dde491ee0e3663440f05165f140e9086f68c69bf.tar cuberite-dde491ee0e3663440f05165f140e9086f68c69bf.tar.gz cuberite-dde491ee0e3663440f05165f140e9086f68c69bf.tar.bz2 cuberite-dde491ee0e3663440f05165f140e9086f68c69bf.tar.lz cuberite-dde491ee0e3663440f05165f140e9086f68c69bf.tar.xz cuberite-dde491ee0e3663440f05165f140e9086f68c69bf.tar.zst cuberite-dde491ee0e3663440f05165f140e9086f68c69bf.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 { |