summaryrefslogtreecommitdiffstats
path: root/src/WorldStorage/NBTChunkSerializer.cpp
diff options
context:
space:
mode:
authorTheJumper <maximilian.springer@web.de>2014-02-23 18:43:47 +0100
committerTheJumper <maximilian.springer@web.de>2014-02-23 18:43:47 +0100
commit72dd48f7e741217077f82d9c8ec7e55618102bd6 (patch)
treeae346f75dc629d57886d398581bcf672334c9e84 /src/WorldStorage/NBTChunkSerializer.cpp
parentFixed Formatting, Added DropChance attributes to Monsters (diff)
downloadcuberite-72dd48f7e741217077f82d9c8ec7e55618102bd6.tar
cuberite-72dd48f7e741217077f82d9c8ec7e55618102bd6.tar.gz
cuberite-72dd48f7e741217077f82d9c8ec7e55618102bd6.tar.bz2
cuberite-72dd48f7e741217077f82d9c8ec7e55618102bd6.tar.lz
cuberite-72dd48f7e741217077f82d9c8ec7e55618102bd6.tar.xz
cuberite-72dd48f7e741217077f82d9c8ec7e55618102bd6.tar.zst
cuberite-72dd48f7e741217077f82d9c8ec7e55618102bd6.zip
Diffstat (limited to '')
-rw-r--r--src/WorldStorage/NBTChunkSerializer.cpp15
1 files changed, 7 insertions, 8 deletions
diff --git a/src/WorldStorage/NBTChunkSerializer.cpp b/src/WorldStorage/NBTChunkSerializer.cpp
index 5bcaf06bd..b9d92d2df 100644
--- a/src/WorldStorage/NBTChunkSerializer.cpp
+++ b/src/WorldStorage/NBTChunkSerializer.cpp
@@ -407,16 +407,15 @@ 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);
+ 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();
switch (a_Monster->GetMobType())
{
case cMonster::mtBat: