world regen clears all chunks

This commit is contained in:
2024-09-07 04:05:50 +10:00
parent c80e456d3e
commit ee54e011a1
4 changed files with 23 additions and 5 deletions

View File

@ -32,6 +32,8 @@ class Game: GameDelegate {
}
private func generateWorld() {
self.world.removeAllChunks()
self.renderChunks.removeAll()
let seed = UInt64(Arc4Random.instance.next()) | UInt64(Arc4Random.instance.next()) << 32
printErr(seed)
#if DEBUG