fix ghost chunks and wait for generation on startup

This commit is contained in:
Alex Zenla
2024-09-05 21:16:29 -04:00
parent 57b97148a4
commit 54ed81b15d
4 changed files with 15 additions and 3 deletions

View File

@ -50,6 +50,10 @@ public struct ChunkGeneration {
}
}
public func waitForActiveOperations() {
self.queue.waitUntilAllOperationsAreFinished()
}
public mutating func acceptReadyChunks() {
guard let world = self.world else {
return