mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-08 04:21:50 +00:00
fix
This commit is contained in:
parent
49dd866c22
commit
b1fc666448
2 changed files with 3 additions and 3 deletions
|
|
@ -354,8 +354,8 @@ void WorldGenerator::generateHeightmap(
|
|||
|
||||
void WorldGenerator::update(int centerX, int centerY, int loadDistance) {
|
||||
surroundMap.setCenter(centerX, centerY);
|
||||
// 1 is safety padding preventing ChunksController rounding problem
|
||||
surroundMap.resize(loadDistance + 1);
|
||||
// 2 is safety padding preventing ChunksController rounding problem
|
||||
surroundMap.resize(loadDistance + 2);
|
||||
surroundMap.setCenter(centerX, centerY);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue