diff options
author | Tiger Wang <ziwei.tiger@hotmail.co.uk> | 2015-05-18 15:30:16 +0200 |
---|---|---|
committer | Tiger Wang <ziwei.tiger@hotmail.co.uk> | 2015-05-18 15:30:16 +0200 |
commit | 0dbba305b6b96f81fe5f9b457dfb4f63d4a420c9 (patch) | |
tree | dc5046599788117404826792986eb073ef3b27db /src/Items/ItemBucket.h | |
parent | Merge branch 'master' of https://github.com/mc-server/MCServer (diff) | |
download | cuberite-0dbba305b6b96f81fe5f9b457dfb4f63d4a420c9.tar cuberite-0dbba305b6b96f81fe5f9b457dfb4f63d4a420c9.tar.gz cuberite-0dbba305b6b96f81fe5f9b457dfb4f63d4a420c9.tar.bz2 cuberite-0dbba305b6b96f81fe5f9b457dfb4f63d4a420c9.tar.lz cuberite-0dbba305b6b96f81fe5f9b457dfb4f63d4a420c9.tar.xz cuberite-0dbba305b6b96f81fe5f9b457dfb4f63d4a420c9.tar.zst cuberite-0dbba305b6b96f81fe5f9b457dfb4f63d4a420c9.zip |
Diffstat (limited to 'src/Items/ItemBucket.h')
-rw-r--r-- | src/Items/ItemBucket.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Items/ItemBucket.h b/src/Items/ItemBucket.h index 015720415..47429551a 100644 --- a/src/Items/ItemBucket.h +++ b/src/Items/ItemBucket.h @@ -96,7 +96,7 @@ public: ASSERT(!"Inventory bucket mismatch"); return true; } - if (a_Player->GetInventory().AddItem(cItem(NewItem), true, true) != 1) + if (a_Player->GetInventory().AddItem(cItem(NewItem)) != 1) { // The bucket didn't fit, toss it as a pickup: a_Player->TossPickup(cItem(NewItem)); @@ -137,7 +137,7 @@ public: return false; } cItem Item(E_ITEM_BUCKET, 1); - if (!a_Player->GetInventory().AddItem(Item, true, true)) + if (!a_Player->GetInventory().AddItem(Item)) { return false; } |