1
0

Added a few more stackable items

git-svn-id: http://mc-server.googlecode.com/svn/trunk@733 0a769ca7-a7f5-676a-18bf-c427514a06d6
This commit is contained in:
madmaxoft@gmail.com 2012-08-14 09:28:17 +00:00
parent e946616772
commit dfa9a1e7c4
2 changed files with 29 additions and 14 deletions

View File

@ -356,8 +356,10 @@ enum ENUM_ITEM_ID
E_ITEM_GOLD_LEGGINGS = 316,
E_ITEM_GOLD_BOOTS = 317,
E_ITEM_FLINT = 318,
E_ITEM_RAW_MEAT = 319,
E_ITEM_COOKED_MEAT = 320,
E_ITEM_RAW_PORKCHOP = 319,
E_ITEM_RAW_MEAT = 319, // OBSOLETE, use E_ITEM_RAW_PORKCHOP instead
E_ITEM_COOKED_PORKCHOP = 320,
E_ITEM_COOKED_MEAT = 320, // OBSOLETE, use E_ITEM_COOKED_PORKCHOP instead
E_ITEM_PAINTINGS = 321,
E_ITEM_GOLDEN_APPLE = 322,
E_ITEM_SIGN = 323,

View File

@ -247,18 +247,31 @@ char cItemHandler::GetMaxStackSize(void)
switch (m_ItemID)
{
case E_ITEM_APPLE: return 64;
case E_ITEM_ARROW: return 64;
case E_ITEM_BLAZE_POWDER: return 64;
case E_ITEM_BLAZE_ROD: return 64;
case E_ITEM_BONE: return 64;
case E_ITEM_BOOK: return 64;
case E_ITEM_BOWL: return 64;
case E_ITEM_BREAD: return 64;
case E_ITEM_BROWN_MUSHROOM: return 64;
case E_ITEM_BUCKET: return 1; // TODO: change this to 16 when turning compatibility to 1.3
case E_ITEM_COAL: return 64;
case E_ITEM_DIAMOND: return 64;
case E_ITEM_APPLE: return 64;
case E_ITEM_ARROW: return 64;
case E_ITEM_BLAZE_POWDER: return 64;
case E_ITEM_BLAZE_ROD: return 64;
case E_ITEM_BONE: return 64;
case E_ITEM_BOOK: return 64;
case E_ITEM_BOWL: return 64;
case E_ITEM_BREAD: return 64;
case E_ITEM_BROWN_MUSHROOM: return 64;
case E_ITEM_BUCKET: return 1; // TODO: change this to 16 when turning compatibility to 1.3
case E_ITEM_COAL: return 64;
case E_ITEM_COOKED_CHICKEN: return 64;
case E_ITEM_COOKED_FISH: return 64;
case E_ITEM_COOKED_PORKCHOP: return 64;
case E_ITEM_DIAMOND: return 64;
case E_ITEM_FEATHER: return 64;
case E_ITEM_FLINT: return 64;
case E_ITEM_GOLD: return 64;
case E_ITEM_GUNPOWDER: return 64;
case E_ITEM_IRON: return 64;
case E_ITEM_RAW_PORKCHOP: return 64;
case E_ITEM_SEEDS: return 64;
case E_ITEM_STICK: return 64;
case E_ITEM_STRING: return 64;
case E_ITEM_WHEAT: return 64;
}
// By default items don't stack:
return 1;