summaryrefslogtreecommitdiffstats
path: root/src/Chunk.cpp
diff options
context:
space:
mode:
authorTiger Wang <ziwei.tiger@hotmail.co.uk>2013-12-13 00:49:10 +0100
committerTiger Wang <ziwei.tiger@hotmail.co.uk>2013-12-13 00:49:10 +0100
commit6b6905fe1cbe3b07ff29e1df9259c0b7c3619421 (patch)
tree6f4e983e8a0a9b9d16317ca509b9cb20d2f4dcb4 /src/Chunk.cpp
parentUnknown packet type extended to 32 bits. (diff)
downloadcuberite-6b6905fe1cbe3b07ff29e1df9259c0b7c3619421.tar
cuberite-6b6905fe1cbe3b07ff29e1df9259c0b7c3619421.tar.gz
cuberite-6b6905fe1cbe3b07ff29e1df9259c0b7c3619421.tar.bz2
cuberite-6b6905fe1cbe3b07ff29e1df9259c0b7c3619421.tar.lz
cuberite-6b6905fe1cbe3b07ff29e1df9259c0b7c3619421.tar.xz
cuberite-6b6905fe1cbe3b07ff29e1df9259c0b7c3619421.tar.zst
cuberite-6b6905fe1cbe3b07ff29e1df9259c0b7c3619421.zip
Diffstat (limited to 'src/Chunk.cpp')
-rw-r--r--src/Chunk.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/Chunk.cpp b/src/Chunk.cpp
index 9c195fdf8..190521c0f 100644
--- a/src/Chunk.cpp
+++ b/src/Chunk.cpp
@@ -1335,6 +1335,7 @@ void cChunk::WakeUpSimulators(void)
{
cSimulator * WaterSimulator = m_World->GetWaterSimulator();
cSimulator * LavaSimulator = m_World->GetLavaSimulator();
+ cSimulator * RedstoneSimulator = m_World->GetRedstoneSimulator();
int BaseX = m_PosX * cChunkDef::Width;
int BaseZ = m_PosZ * cChunkDef::Width;
for (int x = 0; x < Width; x++)
@@ -1357,6 +1358,11 @@ void cChunk::WakeUpSimulators(void)
LavaSimulator->AddBlock(BlockX, y, BlockZ, this);
break;
}
+ default:
+ {
+ RedstoneSimulator->AddBlock(BlockX, y, BlockZ, this); // Redstone simulator checks if valid redstone block already
+ break;
+ }
} // switch (BlockType)
} // for y
} // for z