Separated chunk generator from world / plugin interfaces.
The generator now only takes care of servicing synchronous "GetChunk(X, Y)" and "GetBiomes(X, Y)" requests.
This commit is contained in:
@@ -240,7 +240,7 @@ bool cWorldStorage::LoadOneChunk(void)
|
||||
// Call the callback, if specified:
|
||||
if (ToLoad.m_Callback != nullptr)
|
||||
{
|
||||
ToLoad.m_Callback->Call(ToLoad.m_ChunkX, ToLoad.m_ChunkZ, res);
|
||||
ToLoad.m_Callback->Call({ToLoad.m_ChunkX, ToLoad.m_ChunkZ}, res);
|
||||
}
|
||||
return res;
|
||||
}
|
||||
@@ -274,7 +274,7 @@ bool cWorldStorage::SaveOneChunk(void)
|
||||
// Call the callback, if specified:
|
||||
if (ToSave.m_Callback != nullptr)
|
||||
{
|
||||
ToSave.m_Callback->Call(ToSave.m_ChunkX, ToSave.m_ChunkZ, Status);
|
||||
ToSave.m_Callback->Call({ToSave.m_ChunkX, ToSave.m_ChunkZ}, Status);
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user