summaryrefslogtreecommitdiffstats
path: root/src/WorldStorage/NBTChunkSerializer.cpp
diff options
context:
space:
mode:
authorTheJumper <maximilian.springer@web.de>2014-02-23 18:13:49 +0100
committerTheJumper <maximilian.springer@web.de>2014-02-23 18:13:49 +0100
commit1afcc255bfe7153dc397970e0ece41d6d48e63be (patch)
treea6c3ea18af891781c4a7e48528e635def25ba98e /src/WorldStorage/NBTChunkSerializer.cpp
parentFinally corrected the Enchantment constants. (diff)
downloadcuberite-1afcc255bfe7153dc397970e0ece41d6d48e63be.tar
cuberite-1afcc255bfe7153dc397970e0ece41d6d48e63be.tar.gz
cuberite-1afcc255bfe7153dc397970e0ece41d6d48e63be.tar.bz2
cuberite-1afcc255bfe7153dc397970e0ece41d6d48e63be.tar.lz
cuberite-1afcc255bfe7153dc397970e0ece41d6d48e63be.tar.xz
cuberite-1afcc255bfe7153dc397970e0ece41d6d48e63be.tar.zst
cuberite-1afcc255bfe7153dc397970e0ece41d6d48e63be.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..5bcaf06bd 100644
--- a/src/WorldStorage/NBTChunkSerializer.cpp
+++ b/src/WorldStorage/NBTChunkSerializer.cpp
@@ -407,6 +407,14 @@ void cNBTChunkSerializer::AddMonsterEntity(cMonster * a_Monster)
}
} // switch (payload)
+ 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.BeginCompound("");
AddBasicEntity(a_Monster, EntityClass);
switch (a_Monster->GetMobType())