public void SaveChunk(Chunk chunk, bool checkModified = true) { if (!chunk.IsModified && checkModified) { return; } string path = GetChunkFilePath(chunk.PositionX, chunk.PositionZ); WriteChunkToFile(chunk, path); chunk.OnSaved(); }