This commit is contained in:
MihailRis
2024-12-17 20:56:25 +03:00
parent 49dd866c22
commit b1fc666448
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -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);
}