Redstone data is now loaded on chunk load
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user