Fix for the Vaporize fluid simulator when loading chunks.
git-svn-id: http://mc-server.googlecode.com/svn/trunk@1271 0a769ca7-a7f5-676a-18bf-c427514a06d6
This commit is contained in:
parent
b18f657ac1
commit
7f71bfb58f
@ -315,6 +315,9 @@ void cChunk::SetAllData(
|
|||||||
// Create block entities that the loader didn't load; fill them with defaults
|
// Create block entities that the loader didn't load; fill them with defaults
|
||||||
CreateBlockEntities();
|
CreateBlockEntities();
|
||||||
|
|
||||||
|
// Set the chunk data as valid. This may be needed for some simulators that perform actions upon block adding (Vaporize)
|
||||||
|
SetValid();
|
||||||
|
|
||||||
// Wake up all simulators for their respective blocks:
|
// Wake up all simulators for their respective blocks:
|
||||||
WakeUpSimulators();
|
WakeUpSimulators();
|
||||||
|
|
||||||
|
@ -738,7 +738,6 @@ void cChunkMap::SetChunkData(
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
Chunk->SetAllData(a_BlockTypes, a_BlockMeta, a_BlockLight, a_BlockSkyLight, a_HeightMap, a_BiomeMap, a_Entities, a_BlockEntities);
|
Chunk->SetAllData(a_BlockTypes, a_BlockMeta, a_BlockLight, a_BlockSkyLight, a_HeightMap, a_BiomeMap, a_Entities, a_BlockEntities);
|
||||||
Chunk->SetValid();
|
|
||||||
|
|
||||||
if (a_MarkDirty)
|
if (a_MarkDirty)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user