summaryrefslogtreecommitdiffstats
path: root/src/Items
diff options
context:
space:
mode:
authorarchshift <admin@archshift.com>2014-07-20 22:11:06 +0200
committerarchshift <admin@archshift.com>2014-07-26 12:48:16 +0200
commit60d4a165140b3b1c5202c21fd197b61cae18077c (patch)
treebcbeaad5e2d921cfbbeccd81faba132cd61447b4 /src/Items
parentMoved potion static functions to EntityEffect to create splash potions through world (diff)
downloadcuberite-60d4a165140b3b1c5202c21fd197b61cae18077c.tar
cuberite-60d4a165140b3b1c5202c21fd197b61cae18077c.tar.gz
cuberite-60d4a165140b3b1c5202c21fd197b61cae18077c.tar.bz2
cuberite-60d4a165140b3b1c5202c21fd197b61cae18077c.tar.lz
cuberite-60d4a165140b3b1c5202c21fd197b61cae18077c.tar.xz
cuberite-60d4a165140b3b1c5202c21fd197b61cae18077c.tar.zst
cuberite-60d4a165140b3b1c5202c21fd197b61cae18077c.zip
Diffstat (limited to 'src/Items')
-rw-r--r--src/Items/ItemPotion.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/Items/ItemPotion.h b/src/Items/ItemPotion.h
index cc974c8b9..24614cd8a 100644
--- a/src/Items/ItemPotion.h
+++ b/src/Items/ItemPotion.h
@@ -63,9 +63,11 @@ public:
return false;
}
- a_Player->AddEntityEffect(cEntityEffect::GetPotionEffectType(PotionDamage),
- cEntityEffect::GetPotionEffectDuration(PotionDamage),
- cEntityEffect::GetPotionEffectIntensity(PotionDamage));
+ a_Player->AddEntityEffect(
+ cEntityEffect::GetPotionEffectType(PotionDamage),
+ cEntityEffect::GetPotionEffectDuration(PotionDamage),
+ cEntityEffect::GetPotionEffectIntensity(PotionDamage)
+ );
a_Player->GetInventory().RemoveOneEquippedItem();
a_Player->GetInventory().AddItem(E_ITEM_GLASS_BOTTLE);
return true;