summaryrefslogtreecommitdiffstats
path: root/src/WorldStorage/NBTChunkSerializer.cpp
diff options
context:
space:
mode:
authorTheJumper <maximilian.springer@web.de>2014-02-23 19:44:58 +0100
committerTheJumper <maximilian.springer@web.de>2014-02-23 19:50:51 +0100
commit2cc597372afddbd798c2a8c2e754b3f9c7a36038 (patch)
treebb5202265e994a69e16041a86e8199563ee6e940 /src/WorldStorage/NBTChunkSerializer.cpp
parentBlockBed.cpp: Fixed Multiple people in one bed. (diff)
downloadcuberite-2cc597372afddbd798c2a8c2e754b3f9c7a36038.tar
cuberite-2cc597372afddbd798c2a8c2e754b3f9c7a36038.tar.gz
cuberite-2cc597372afddbd798c2a8c2e754b3f9c7a36038.tar.bz2
cuberite-2cc597372afddbd798c2a8c2e754b3f9c7a36038.tar.lz
cuberite-2cc597372afddbd798c2a8c2e754b3f9c7a36038.tar.xz
cuberite-2cc597372afddbd798c2a8c2e754b3f9c7a36038.tar.zst
cuberite-2cc597372afddbd798c2a8c2e754b3f9c7a36038.zip
Diffstat (limited to 'src/WorldStorage/NBTChunkSerializer.cpp')
-rw-r--r--src/WorldStorage/NBTChunkSerializer.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/WorldStorage/NBTChunkSerializer.cpp b/src/WorldStorage/NBTChunkSerializer.cpp
index 2a1eda523..c1c659b36 100644
--- a/src/WorldStorage/NBTChunkSerializer.cpp
+++ b/src/WorldStorage/NBTChunkSerializer.cpp
@@ -409,6 +409,14 @@ void cNBTChunkSerializer::AddMonsterEntity(cMonster * a_Monster)
m_Writer.BeginCompound("");
AddBasicEntity(a_Monster, EntityClass);
+ m_Writer.BeginList("DropChances", TAG_Float);
+ m_Writer.AddFloat("", a_Monster->GetDropChanceWeapon());
+ m_Writer.AddFloat("", a_Monster->GetDropChanceHelmet());
+ m_Writer.AddFloat("", a_Monster->GetDropChanceChestplate());
+ m_Writer.AddFloat("", a_Monster->GetDropChanceLeggings());
+ m_Writer.AddFloat("", a_Monster->GetDropChanceBoots());
+ m_Writer.EndList();
+ m_Writer.AddByte("CanPickUpLoot", (char)a_Monster->CanPickUpLoot());
switch (a_Monster->GetMobType())
{
case cMonster::mtBat: