diff options
author | mborland <matt.borland1@gmail.com> | 2013-11-11 00:33:58 +0100 |
---|---|---|
committer | mborland <matt.borland1@gmail.com> | 2013-11-11 00:33:58 +0100 |
commit | 3710d423acba9546adf441782eb6a17a081c9320 (patch) | |
tree | 9ad19a165d324101fd3c8a3c42665d397d77ee08 /source/Item.cpp | |
parent | VC2013 (diff) | |
parent | Fixed cRoot::FindAndDoWithPlayer(). (diff) | |
download | cuberite-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 '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 { |