diff options
author | luksor111@gmail.com <luksor111@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6> | 2012-12-29 13:20:33 +0100 |
---|---|---|
committer | luksor111@gmail.com <luksor111@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6> | 2012-12-29 13:20:33 +0100 |
commit | 10d78bd93d7d8dc802b3d7a445b004545fe141d3 (patch) | |
tree | b021dd85a186fa64d5e54092225c6f4894776d78 /source | |
parent | Cauldrons and Brewing Stands are now placeable (diff) | |
download | cuberite-10d78bd93d7d8dc802b3d7a445b004545fe141d3.tar cuberite-10d78bd93d7d8dc802b3d7a445b004545fe141d3.tar.gz cuberite-10d78bd93d7d8dc802b3d7a445b004545fe141d3.tar.bz2 cuberite-10d78bd93d7d8dc802b3d7a445b004545fe141d3.tar.lz cuberite-10d78bd93d7d8dc802b3d7a445b004545fe141d3.tar.xz cuberite-10d78bd93d7d8dc802b3d7a445b004545fe141d3.tar.zst cuberite-10d78bd93d7d8dc802b3d7a445b004545fe141d3.zip |
Diffstat (limited to '')
-rw-r--r-- | source/Blocks/BlockCauldron.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/source/Blocks/BlockCauldron.h b/source/Blocks/BlockCauldron.h index c8e571623..360604f85 100644 --- a/source/Blocks/BlockCauldron.h +++ b/source/Blocks/BlockCauldron.h @@ -31,7 +31,8 @@ public: a_World->SetBlockMeta( a_BlockX, a_BlockY, a_BlockZ, 3 );
cItem Item(a_Player->GetEquippedItem().m_ItemType, 1);
a_Player->GetInventory().RemoveItem(Item);
- a_Player->GetInventory().AddItem(cItem(E_ITEM_BUCKET, 1, 0));
+ cItem NewItem(E_ITEM_BUCKET, 1);
+ a_Player->GetInventory().AddItem(NewItem);
break;
}
case E_ITEM_GLASS_BOTTLE:
@@ -41,7 +42,8 @@ public: a_World->SetBlockMeta( a_BlockX, a_BlockY, a_BlockZ, --Meta );
cItem Item(a_Player->GetEquippedItem().m_ItemType, 1);
a_Player->GetInventory().RemoveItem(Item);
- a_Player->GetInventory().AddItem(cItem(E_ITEM_POTIONS, 1, 0));
+ cItem NewItem(E_ITEM_POTIONS, 1, 0);
+ a_Player->GetInventory().AddItem(NewItem);
}
break;
}
|