summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--source/BlockID.h6
-rw-r--r--source/items/Item.cpp37
2 files changed, 29 insertions, 14 deletions
diff --git a/source/BlockID.h b/source/BlockID.h
index 139e08eb7..a66e7f026 100644
--- a/source/BlockID.h
+++ b/source/BlockID.h
@@ -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,
diff --git a/source/items/Item.cpp b/source/items/Item.cpp
index fbc862d7d..b645a8a93 100644
--- a/source/items/Item.cpp
+++ b/source/items/Item.cpp
@@ -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;