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