summaryrefslogtreecommitdiffstats
path: root/source/Items
diff options
context:
space:
mode:
authormadmaxoft <madmaxoft@0a769ca7-a7f5-676a-18bf-c427514a06d6>2013-07-03 15:56:11 +0200
committermadmaxoft <madmaxoft@0a769ca7-a7f5-676a-18bf-c427514a06d6>2013-07-03 15:56:11 +0200
commite27a5db409fe1d71c42235609a9fe06020b6201b (patch)
tree28376a912b0f01f89c048f7eb25becf10ceb287c /source/Items
parentUpdated LimitWorld. (Patch by tonibm19) (diff)
downloadcuberite-e27a5db409fe1d71c42235609a9fe06020b6201b.tar
cuberite-e27a5db409fe1d71c42235609a9fe06020b6201b.tar.gz
cuberite-e27a5db409fe1d71c42235609a9fe06020b6201b.tar.bz2
cuberite-e27a5db409fe1d71c42235609a9fe06020b6201b.tar.lz
cuberite-e27a5db409fe1d71c42235609a9fe06020b6201b.tar.xz
cuberite-e27a5db409fe1d71c42235609a9fe06020b6201b.tar.zst
cuberite-e27a5db409fe1d71c42235609a9fe06020b6201b.zip
Diffstat (limited to '')
-rw-r--r--source/Items/ItemBucket.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/source/Items/ItemBucket.h b/source/Items/ItemBucket.h
index 4792fa62d..e4adc98b8 100644
--- a/source/Items/ItemBucket.h
+++ b/source/Items/ItemBucket.h
@@ -90,7 +90,7 @@ public:
// Give new bucket, filled with fluid:
cItem Item(NewItem, 1);
- a_Player->GetInventory().AddItem(Item);
+ a_Player->GetInventory().AddItem(Item, true, true);
// Remove water / lava block
a_Player->GetWorld()->SetBlock(a_BlockX, a_BlockY, a_BlockZ, E_BLOCK_AIR, 0);
@@ -136,7 +136,7 @@ public:
return false;
}
cItem Item(E_ITEM_BUCKET, 1);
- if (!a_Player->GetInventory().AddItem(Item))
+ if (!a_Player->GetInventory().AddItem(Item,true,true))
{
return false;
}
@@ -157,4 +157,4 @@ public:
return true;
}
-}; \ No newline at end of file
+};