summaryrefslogtreecommitdiffstats
path: root/src/Items
diff options
context:
space:
mode:
authorarchshift <admin@archshift.com>2014-07-12 02:27:29 +0200
committerarchshift <admin@archshift.com>2014-07-12 02:27:29 +0200
commit4e6395d6ff9f34edb4dd36dc1f8e845c56b499f4 (patch)
treec43c02cef430c346a0ab310d1e6714bf66897052 /src/Items
parentMerge remote-tracking branch 'origin/master' into potions (diff)
downloadcuberite-4e6395d6ff9f34edb4dd36dc1f8e845c56b499f4.tar
cuberite-4e6395d6ff9f34edb4dd36dc1f8e845c56b499f4.tar.gz
cuberite-4e6395d6ff9f34edb4dd36dc1f8e845c56b499f4.tar.bz2
cuberite-4e6395d6ff9f34edb4dd36dc1f8e845c56b499f4.tar.lz
cuberite-4e6395d6ff9f34edb4dd36dc1f8e845c56b499f4.tar.xz
cuberite-4e6395d6ff9f34edb4dd36dc1f8e845c56b499f4.tar.zst
cuberite-4e6395d6ff9f34edb4dd36dc1f8e845c56b499f4.zip
Diffstat (limited to 'src/Items')
-rw-r--r--src/Items/ItemPotion.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Items/ItemPotion.h b/src/Items/ItemPotion.h
index 43b9f280d..5badeda94 100644
--- a/src/Items/ItemPotion.h
+++ b/src/Items/ItemPotion.h
@@ -123,7 +123,7 @@ public:
Vector3d Speed = a_Player->GetLookVector() * 7;
short potion_damage = a_Item.m_ItemDamage;
- cSplashPotionEntity *Projectile = new cSplashPotionEntity(a_Player, Pos.x, Pos.y, Pos.z, &Speed, GetEntityEffectType(potion_damage), cEntityEffect(GetEntityEffectDuration(potion_damage), GetEntityEffectIntensity(potion_damage), a_Player), GetPotionName(potion_damage));
+ cSplashPotionEntity *Projectile = new cSplashPotionEntity(a_Player, Pos.x, Pos.y, Pos.z, &Speed, GetEntityEffectType(potion_damage), cEntityEffect(GetEntityEffectDuration(potion_damage), GetEntityEffectIntensity(potion_damage)), GetPotionName(potion_damage));
if (Projectile == NULL)
{
return false;
@@ -146,7 +146,7 @@ public:
virtual bool EatItem(cPlayer * a_Player, cItem * a_Item) override
{
// Called when potion is a drinkable potion
- a_Player->AddEntityEffect(GetEntityEffectType(a_Item->m_ItemDamage), GetEntityEffectDuration(a_Item->m_ItemDamage), GetEntityEffectIntensity(a_Item->m_ItemDamage), a_Player);
+ a_Player->AddEntityEffect(GetEntityEffectType(a_Item->m_ItemDamage), GetEntityEffectDuration(a_Item->m_ItemDamage), GetEntityEffectIntensity(a_Item->m_ItemDamage));
a_Player->GetInventory().RemoveOneEquippedItem();
a_Player->GetInventory().AddItem(E_ITEM_GLASS_BOTTLE);
return true;