summaryrefslogtreecommitdiffstats
path: root/src/WorldStorage/NBTChunkSerializer.cpp
diff options
context:
space:
mode:
authorarchshift <admin@archshift.com>2014-07-12 03:58:11 +0200
committerarchshift <admin@archshift.com>2014-07-12 03:58:11 +0200
commit8cbd43e0434323dcb1ccba6e1b95a3ca16d35d44 (patch)
tree1941b42b2892b873f498193e677df1f0e37dd2b2 /src/WorldStorage/NBTChunkSerializer.cpp
parentMerge remote-tracking branch 'origin/master' into potions (diff)
downloadcuberite-8cbd43e0434323dcb1ccba6e1b95a3ca16d35d44.tar
cuberite-8cbd43e0434323dcb1ccba6e1b95a3ca16d35d44.tar.gz
cuberite-8cbd43e0434323dcb1ccba6e1b95a3ca16d35d44.tar.bz2
cuberite-8cbd43e0434323dcb1ccba6e1b95a3ca16d35d44.tar.lz
cuberite-8cbd43e0434323dcb1ccba6e1b95a3ca16d35d44.tar.xz
cuberite-8cbd43e0434323dcb1ccba6e1b95a3ca16d35d44.tar.zst
cuberite-8cbd43e0434323dcb1ccba6e1b95a3ca16d35d44.zip
Diffstat (limited to 'src/WorldStorage/NBTChunkSerializer.cpp')
-rw-r--r--src/WorldStorage/NBTChunkSerializer.cpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/WorldStorage/NBTChunkSerializer.cpp b/src/WorldStorage/NBTChunkSerializer.cpp
index 317ace795..fe65fa723 100644
--- a/src/WorldStorage/NBTChunkSerializer.cpp
+++ b/src/WorldStorage/NBTChunkSerializer.cpp
@@ -29,6 +29,7 @@
#include "../Entities/Minecart.h"
#include "../Entities/Pickup.h"
#include "../Entities/ArrowEntity.h"
+#include "../Entities/SplashPotionEntity.h"
#include "../Entities/TNTEntity.h"
#include "../Entities/ExpOrb.h"
#include "../Entities/HangingEntity.h"
@@ -604,6 +605,16 @@ void cNBTChunkSerializer::AddProjectileEntity(cProjectileEntity * a_Projectile)
m_Writer.AddDouble("damage", Arrow->GetDamageCoeff());
break;
}
+ case cProjectileEntity::pkSplashPotion:
+ {
+ cSplashPotionEntity * Potion = (cSplashPotionEntity *)a_Projectile;
+
+ m_Writer.AddInt("EffectType", (Int16)Potion->GetEntityEffectType());
+ m_Writer.AddInt("EffectDuration", (Int16)Potion->GetEntityEffect().GetDuration());
+ m_Writer.AddShort("EffectIntensity", Potion->GetEntityEffect().GetIntensity());
+ m_Writer.AddDouble("EffectDistanceModifier", Potion->GetEntityEffect().GetDistanceModifier());
+ m_Writer.AddInt("PotionName", Potion->GetPotionName());
+ }
case cProjectileEntity::pkGhastFireball:
{
m_Writer.AddInt("ExplosionPower", 1);