summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2013-03-18 21:47:25 +0100
committermadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2013-03-18 21:47:25 +0100
commit4fa4d5e2b358d7598cc641495e77e0a6874028f4 (patch)
tree0cb018e66aa1c6a0fa3ecd198712744c61400989
parentAdded support for the packet #28 (0x1C): ENTITY_VELOCITY (diff)
downloadcuberite-4fa4d5e2b358d7598cc641495e77e0a6874028f4.tar
cuberite-4fa4d5e2b358d7598cc641495e77e0a6874028f4.tar.gz
cuberite-4fa4d5e2b358d7598cc641495e77e0a6874028f4.tar.bz2
cuberite-4fa4d5e2b358d7598cc641495e77e0a6874028f4.tar.lz
cuberite-4fa4d5e2b358d7598cc641495e77e0a6874028f4.tar.xz
cuberite-4fa4d5e2b358d7598cc641495e77e0a6874028f4.tar.zst
cuberite-4fa4d5e2b358d7598cc641495e77e0a6874028f4.zip
-rw-r--r--source/Generating/ChunkDesc.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/Generating/ChunkDesc.cpp b/source/Generating/ChunkDesc.cpp
index 00ccacc07..9a2f2eff5 100644
--- a/source/Generating/ChunkDesc.cpp
+++ b/source/Generating/ChunkDesc.cpp
@@ -272,7 +272,7 @@ void cChunkDesc::WriteBlockArea(const cBlockArea & a_BlockArea, int a_RelX, int
for (int x = 0; x < SizeX; x++)
{
int BAX = BAOffX + x;
- int CDX = BAOffX + x;
+ int CDX = CDOffX + x;
cChunkDef::SetBlock(m_BlockTypes, CDX, CDY, CDZ, a_BlockArea.GetRelBlockType(BAX, BAY, BAZ));
} // for x
} // for z
@@ -292,7 +292,7 @@ void cChunkDesc::WriteBlockArea(const cBlockArea & a_BlockArea, int a_RelX, int
for (int x = 0; x < SizeX; x++)
{
int BAX = BAOffX + x;
- int CDX = BAOffX + x;
+ int CDX = CDOffX + x;
cChunkDef::SetNibble(m_BlockMeta, CDX, CDY, CDZ, a_BlockArea.GetRelBlockMeta(BAX, BAY, BAZ));
} // for x
} // for z