summaryrefslogtreecommitdiffstats
path: root/src/WorldStorage/NBTChunkSerializer.cpp
diff options
context:
space:
mode:
authormadmaxoft <github@xoft.cz>2014-09-23 22:22:38 +0200
committermadmaxoft <github@xoft.cz>2014-09-23 22:22:38 +0200
commit8d9dfc5d1a090f163f927484a43baaad49052f31 (patch)
tree7829c803684adccfb9915e95debdba36082992b7 /src/WorldStorage/NBTChunkSerializer.cpp
parentFixed compiler warnings in 1.8 protocol. (diff)
downloadcuberite-8d9dfc5d1a090f163f927484a43baaad49052f31.tar
cuberite-8d9dfc5d1a090f163f927484a43baaad49052f31.tar.gz
cuberite-8d9dfc5d1a090f163f927484a43baaad49052f31.tar.bz2
cuberite-8d9dfc5d1a090f163f927484a43baaad49052f31.tar.lz
cuberite-8d9dfc5d1a090f163f927484a43baaad49052f31.tar.xz
cuberite-8d9dfc5d1a090f163f927484a43baaad49052f31.tar.zst
cuberite-8d9dfc5d1a090f163f927484a43baaad49052f31.zip
Diffstat (limited to 'src/WorldStorage/NBTChunkSerializer.cpp')
-rw-r--r--src/WorldStorage/NBTChunkSerializer.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/WorldStorage/NBTChunkSerializer.cpp b/src/WorldStorage/NBTChunkSerializer.cpp
index 1962d42ff..3c9da6de7 100644
--- a/src/WorldStorage/NBTChunkSerializer.cpp
+++ b/src/WorldStorage/NBTChunkSerializer.cpp
@@ -582,7 +582,7 @@ void cNBTChunkSerializer::AddMonsterEntity(cMonster * a_Monster)
}
m_Writer.AddByte("Sitting", Wolf.IsSitting() ? 1 : 0);
m_Writer.AddByte("Angry", Wolf.IsAngry() ? 1 : 0);
- m_Writer.AddInt("CollarColor", Wolf.GetCollarColor());
+ m_Writer.AddByte("CollarColor", (unsigned char)Wolf.GetCollarColor());
break;
}
case cMonster::mtZombie: