mirror of
https://github.com/GayPizzaSpecifications/voxelotl-engine.git
synced 2025-08-03 13:11:33 +00:00
fix ghost chunks and wait for generation on startup
This commit is contained in:
@ -106,6 +106,10 @@ public class World {
|
||||
self._chunkGeneration.acceptReadyChunks()
|
||||
}
|
||||
|
||||
public func waitForActiveOperations() {
|
||||
self._chunkGeneration.waitForActiveOperations()
|
||||
}
|
||||
|
||||
func handleRenderDamagedChunks(_ body: (_ id: ChunkID, _ chunk: Chunk) -> Void) {
|
||||
for id in self._chunkDamage {
|
||||
body(id, self._chunks[id]!)
|
||||
|
Reference in New Issue
Block a user