diff options
author | Mattes D <github@xoft.cz> | 2014-07-26 16:47:11 +0200 |
---|---|---|
committer | Mattes D <github@xoft.cz> | 2014-07-26 16:47:11 +0200 |
commit | 56f417494390ade84dd64167b1d62d28068b790c (patch) | |
tree | 7db4a59db1874bf9250e8c2c9bf3271e5a5ae67c /src/Entities/ProjectileEntity.cpp | |
parent | Merge pull request #1207 from Howaner/Inventory (diff) | |
parent | SplashPotionEntity: Use `const cItem &` instead of a cItem (diff) | |
download | cuberite-56f417494390ade84dd64167b1d62d28068b790c.tar cuberite-56f417494390ade84dd64167b1d62d28068b790c.tar.gz cuberite-56f417494390ade84dd64167b1d62d28068b790c.tar.bz2 cuberite-56f417494390ade84dd64167b1d62d28068b790c.tar.lz cuberite-56f417494390ade84dd64167b1d62d28068b790c.tar.xz cuberite-56f417494390ade84dd64167b1d62d28068b790c.tar.zst cuberite-56f417494390ade84dd64167b1d62d28068b790c.zip |
Diffstat (limited to '')
-rw-r--r-- | src/Entities/ProjectileEntity.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/Entities/ProjectileEntity.cpp b/src/Entities/ProjectileEntity.cpp index b5e81bc0c..43023ec28 100644 --- a/src/Entities/ProjectileEntity.cpp +++ b/src/Entities/ProjectileEntity.cpp @@ -22,6 +22,7 @@ #include "FireworkEntity.h" #include "GhastFireballEntity.h" #include "WitherSkullEntity.h" +#include "SplashPotionEntity.h" #include "Player.h" @@ -263,6 +264,7 @@ cProjectileEntity * cProjectileEntity::Create(eKind a_Kind, cEntity * a_Creator, case pkGhastFireball: return new cGhastFireballEntity (a_Creator, a_X, a_Y, a_Z, Speed); case pkFireCharge: return new cFireChargeEntity (a_Creator, a_X, a_Y, a_Z, Speed); case pkExpBottle: return new cExpBottleEntity (a_Creator, a_X, a_Y, a_Z, Speed); + case pkSplashPotion: return new cSplashPotionEntity (a_Creator, a_X, a_Y, a_Z, Speed, *a_Item); case pkWitherSkull: return new cWitherSkullEntity (a_Creator, a_X, a_Y, a_Z, Speed); case pkFirework: { |