diff options
author | Alexander Harkness <me@bearbin.net> | 2015-05-27 13:21:17 +0200 |
---|---|---|
committer | Alexander Harkness <me@bearbin.net> | 2015-05-27 13:21:17 +0200 |
commit | da4a76bb5043d072513b74823dc79279c75dd70c (patch) | |
tree | 5c46cca70beb5e0b0d0161b5ccb306425e6426dd /src/Items/ItemBucket.h | |
parent | Merge pull request #2143 from jammet/patch-6 (diff) | |
parent | Fixes #2041 (diff) | |
download | cuberite-da4a76bb5043d072513b74823dc79279c75dd70c.tar cuberite-da4a76bb5043d072513b74823dc79279c75dd70c.tar.gz cuberite-da4a76bb5043d072513b74823dc79279c75dd70c.tar.bz2 cuberite-da4a76bb5043d072513b74823dc79279c75dd70c.tar.lz cuberite-da4a76bb5043d072513b74823dc79279c75dd70c.tar.xz cuberite-da4a76bb5043d072513b74823dc79279c75dd70c.tar.zst cuberite-da4a76bb5043d072513b74823dc79279c75dd70c.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 45b4030a3..0689670f9 100644 --- a/src/Items/ItemBucket.h +++ b/src/Items/ItemBucket.h @@ -103,7 +103,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)); @@ -151,7 +151,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; } |