summaryrefslogtreecommitdiffstats
path: root/src/WorldStorage/NBTChunkSerializer.cpp
diff options
context:
space:
mode:
authorarchshift <admin@archshift.com>2014-04-25 05:25:03 +0200
committerarchshift <admin@archshift.com>2014-04-25 05:25:03 +0200
commit62e5234535d1825b152c882fdaea9d2257194e6d (patch)
treec1fc8bb364b713c81ead55c95d7eee097cda4eae /src/WorldStorage/NBTChunkSerializer.cpp
parentOops, fixed that. (diff)
downloadcuberite-62e5234535d1825b152c882fdaea9d2257194e6d.tar
cuberite-62e5234535d1825b152c882fdaea9d2257194e6d.tar.gz
cuberite-62e5234535d1825b152c882fdaea9d2257194e6d.tar.bz2
cuberite-62e5234535d1825b152c882fdaea9d2257194e6d.tar.lz
cuberite-62e5234535d1825b152c882fdaea9d2257194e6d.tar.xz
cuberite-62e5234535d1825b152c882fdaea9d2257194e6d.tar.zst
cuberite-62e5234535d1825b152c882fdaea9d2257194e6d.zip
Diffstat (limited to 'src/WorldStorage/NBTChunkSerializer.cpp')
-rw-r--r--src/WorldStorage/NBTChunkSerializer.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/WorldStorage/NBTChunkSerializer.cpp b/src/WorldStorage/NBTChunkSerializer.cpp
index b6c14db9c..27631eded 100644
--- a/src/WorldStorage/NBTChunkSerializer.cpp
+++ b/src/WorldStorage/NBTChunkSerializer.cpp
@@ -621,10 +621,10 @@ void cNBTChunkSerializer::AddHangingEntity(cHangingEntity * a_Hanging)
m_Writer.AddInt("TileZ", a_Hanging->GetTileZ());
switch (a_Hanging->GetDirection())
{
- case 0: m_Writer.AddByte("Dir", (unsigned char)2); break;
- case 1: m_Writer.AddByte("Dir", (unsigned char)1); break;
- case 2: m_Writer.AddByte("Dir", (unsigned char)0); break;
- case 3: m_Writer.AddByte("Dir", (unsigned char)3); break;
+ case BLOCK_FACE_YM: m_Writer.AddByte("Dir", (unsigned char)2); break;
+ case BLOCK_FACE_YP: m_Writer.AddByte("Dir", (unsigned char)1); break;
+ case BLOCK_FACE_ZM: m_Writer.AddByte("Dir", (unsigned char)0); break;
+ case BLOCK_FACE_ZP: m_Writer.AddByte("Dir", (unsigned char)3); break;
}
}