summaryrefslogtreecommitdiffstats
path: root/src/WorldStorage/NBTChunkSerializer.cpp
diff options
context:
space:
mode:
authorMattes D <github@xoft.cz>2014-01-31 16:32:38 +0100
committerMattes D <github@xoft.cz>2014-01-31 16:32:38 +0100
commit617c5b1fff61fea40ceb8816cf4f9b7f117dc22b (patch)
treef09ddd64be314767fe8e62c13c08c6955ff0f9df /src/WorldStorage/NBTChunkSerializer.cpp
parentFixed cLineBlockTracer:Trace() signature. (diff)
parentInversed condition. (diff)
downloadcuberite-617c5b1fff61fea40ceb8816cf4f9b7f117dc22b.tar
cuberite-617c5b1fff61fea40ceb8816cf4f9b7f117dc22b.tar.gz
cuberite-617c5b1fff61fea40ceb8816cf4f9b7f117dc22b.tar.bz2
cuberite-617c5b1fff61fea40ceb8816cf4f9b7f117dc22b.tar.lz
cuberite-617c5b1fff61fea40ceb8816cf4f9b7f117dc22b.tar.xz
cuberite-617c5b1fff61fea40ceb8816cf4f9b7f117dc22b.tar.zst
cuberite-617c5b1fff61fea40ceb8816cf4f9b7f117dc22b.zip
Diffstat (limited to 'src/WorldStorage/NBTChunkSerializer.cpp')
-rw-r--r--src/WorldStorage/NBTChunkSerializer.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/WorldStorage/NBTChunkSerializer.cpp b/src/WorldStorage/NBTChunkSerializer.cpp
index e46a28caa..9c454c028 100644
--- a/src/WorldStorage/NBTChunkSerializer.cpp
+++ b/src/WorldStorage/NBTChunkSerializer.cpp
@@ -454,8 +454,8 @@ void cNBTChunkSerializer::AddMonsterEntity(cMonster * a_Monster)
}
case cMonster::mtWolf:
{
- // TODO:
- // _X: CopyPasta error: m_Writer.AddInt("Profession", ((const cVillager *)a_Monster)->GetVilType());
+ m_Writer.AddString("Owner", ((const cWolf *)a_Monster)->GetOwner());
+ m_Writer.AddByte("Sitting", ((const cWolf *)a_Monster)->IsSitting());
break;
}
case cMonster::mtZombie: