limit chunks non-unloading zone to a circle
This commit is contained in:
@@ -419,3 +419,7 @@ void Chunks::getVoxels(VoxelsVolume& volume, bool backlight) const {
|
||||
void Chunks::saveAndClear() {
|
||||
areaMap.clear();
|
||||
}
|
||||
|
||||
void Chunks::remove(int32_t x, int32_t z) {
|
||||
areaMap.remove(x, z);
|
||||
}
|
||||
|
||||
@@ -133,6 +133,8 @@ public:
|
||||
|
||||
void saveAndClear();
|
||||
|
||||
void remove(int32_t x, int32_t z);
|
||||
|
||||
const std::vector<std::shared_ptr<Chunk>>& getChunks() const {
|
||||
return areaMap.getBuffer();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user