summaryrefslogtreecommitdiffstats
path: root/src/Items
diff options
context:
space:
mode:
authorTiger Wang <ziwei.tiger@hotmail.co.uk>2015-05-18 15:30:16 +0200
committerTiger Wang <ziwei.tiger@hotmail.co.uk>2015-05-18 15:30:16 +0200
commit0dbba305b6b96f81fe5f9b457dfb4f63d4a420c9 (patch)
treedc5046599788117404826792986eb073ef3b27db /src/Items
parentMerge branch 'master' of https://github.com/mc-server/MCServer (diff)
downloadcuberite-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')
-rw-r--r--src/Items/ItemBucket.h4
-rw-r--r--src/Items/ItemEmptyMap.h2
-rw-r--r--src/Items/ItemMushroomSoup.h2
3 files changed, 4 insertions, 4 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;
}
diff --git a/src/Items/ItemEmptyMap.h b/src/Items/ItemEmptyMap.h
index 6e944b4da..fba8c0a2c 100644
--- a/src/Items/ItemEmptyMap.h
+++ b/src/Items/ItemEmptyMap.h
@@ -60,7 +60,7 @@ public:
return true;
}
- a_Player->GetInventory().AddItem(cItem(E_ITEM_MAP, 1, (short)(NewMap->GetID() & 0x7fff)), true, true);
+ a_Player->GetInventory().AddItem(cItem(E_ITEM_MAP, 1, (short)(NewMap->GetID() & 0x7fff)));
return true;
}
diff --git a/src/Items/ItemMushroomSoup.h b/src/Items/ItemMushroomSoup.h
index dba313ec5..1a761cbf1 100644
--- a/src/Items/ItemMushroomSoup.h
+++ b/src/Items/ItemMushroomSoup.h
@@ -41,7 +41,7 @@ public:
// Return a bowl to the inventory
if (!a_Player->IsGameModeCreative())
{
- a_Player->GetInventory().AddItem(cItem(E_ITEM_BOWL), true, true);
+ a_Player->GetInventory().AddItem(cItem(E_ITEM_BOWL));
}
return true;
}