mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-04 18:41:51 +00:00
update Chunks::configure
This commit is contained in:
parent
1c18c02092
commit
49dd866c22
1 changed files with 1 additions and 1 deletions
|
|
@ -40,7 +40,7 @@ Chunks::Chunks(
|
|||
|
||||
void Chunks::configure(int32_t x, int32_t z, uint32_t radius) {
|
||||
setCenter(x, z);
|
||||
uint32_t diameter = radius * 2LL;
|
||||
uint32_t diameter = radius * 2LL + 1;
|
||||
if (getWidth() != diameter) {
|
||||
resize(diameter, diameter);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue