1
0

Added cItemHandler::GetMaxStackSize() with a very basic implementation

git-svn-id: http://mc-server.googlecode.com/svn/trunk@726 0a769ca7-a7f5-676a-18bf-c427514a06d6
This commit is contained in:
madmaxoft@gmail.com
2012-08-11 12:46:09 +00:00
parent ecf6217ae9
commit 15a5031885
2 changed files with 28 additions and 0 deletions

View File

@@ -237,6 +237,22 @@ void cItemHandler::OnFoodEaten(cWorld *a_World, cPlayer *a_Player, cItem *a_Item
char cItemHandler::GetMaxStackSize(void)
{
if (m_ItemID < 256)
{
// All blocks can stack up to 64
return 64;
}
// By default items don't stack:
return 1;
}
bool cItemHandler::IsTool()
{
return