mirror of
https://github.com/celisej567/mcpe.git
synced 2026-09-17 20:10:23 +03:00
* Improve the inventory. Prepare for survival mode inventory.
This commit is contained in:
@@ -14,10 +14,16 @@ void ItemInstance::init(int itemID, int amount, int auxValue)
|
||||
{
|
||||
m_itemID = itemID;
|
||||
m_amount = amount;
|
||||
m_auxValue = auxValue;
|
||||
|
||||
//@BUG? Not using the auxValue. This is problematic in the case of wool and dyes.
|
||||
}
|
||||
|
||||
ItemInstance::ItemInstance()
|
||||
{
|
||||
init(0, 0, 0);
|
||||
}
|
||||
|
||||
ItemInstance::ItemInstance(Item* pItem)
|
||||
{
|
||||
init(pItem->m_itemID, 1, 0);
|
||||
|
||||
Reference in New Issue
Block a user