Add 'Meta < 3' to Cauldron
This commit is contained in:
parent
191a08fc32
commit
01c01bac37
@ -27,16 +27,19 @@ public:
|
||||
switch( a_Player->GetEquippedItem().m_ItemType )
|
||||
{
|
||||
case E_ITEM_WATER_BUCKET:
|
||||
{
|
||||
if (Meta < 3)
|
||||
{
|
||||
a_ChunkInterface->SetBlockMeta( a_BlockX, a_BlockY, a_BlockZ, 3 );
|
||||
a_Player->GetInventory().RemoveOneEquippedItem();
|
||||
cItem NewItem(E_ITEM_BUCKET, 1);
|
||||
a_Player->GetInventory().AddItem(NewItem);
|
||||
}
|
||||
break;
|
||||
}
|
||||
case E_ITEM_GLASS_BOTTLE:
|
||||
{
|
||||
if( Meta > 0 )
|
||||
if (Meta > 0)
|
||||
{
|
||||
a_ChunkInterface->SetBlockMeta( a_BlockX, a_BlockY, a_BlockZ, --Meta);
|
||||
a_Player->GetInventory().RemoveOneEquippedItem();
|
||||
|
Loading…
Reference in New Issue
Block a user