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:
@ -70,6 +70,12 @@ public class ConcurrentDictionary<V: Hashable, T>: Collection {
|
||||
}
|
||||
}
|
||||
|
||||
public func removeAll(keepingCapacity keep: Bool = false) {
|
||||
self.locked {
|
||||
self.inner.removeAll(keepingCapacity: keep)
|
||||
}
|
||||
}
|
||||
|
||||
fileprivate func locked<X>(_ perform: () -> X) -> X {
|
||||
self.lock.lock()
|
||||
defer {
|
||||
|
Reference in New Issue
Block a user