mirror of
https://github.com/GayPizzaSpecifications/voxelotl-engine.git
synced 2025-08-03 13:11:33 +00:00
world regen clears all chunks
This commit is contained in:
@ -68,6 +68,11 @@ public class World {
|
||||
}
|
||||
}
|
||||
|
||||
func removeAllChunks() {
|
||||
self._chunkGeneration.cancelAndClearAll()
|
||||
self._chunks.removeAll()
|
||||
}
|
||||
|
||||
func generate(width: Int, height: Int, depth: Int, seed: UInt64) {
|
||||
self._generator.reset(seed: seed)
|
||||
let orig = SIMD3(width, height, depth) / 2
|
||||
|
Reference in New Issue
Block a user