mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-09 04:51:49 +00:00
fix "upgrade square is not fully inside of area" error
This commit is contained in:
parent
8a21bd212c
commit
bf79f6bc75
2 changed files with 7 additions and 4 deletions
|
|
@ -355,8 +355,9 @@ void WorldGenerator::generateHeightmap(
|
|||
|
||||
void WorldGenerator::update(int centerX, int centerY, int loadDistance) {
|
||||
surroundMap.setCenter(centerX, centerY);
|
||||
// 2 is safety padding preventing ChunksController rounding problem
|
||||
surroundMap.resize(loadDistance + 2);
|
||||
// 3 is safety padding preventing ChunksController rounding problem
|
||||
// FIXME
|
||||
surroundMap.resize(loadDistance + 3);
|
||||
surroundMap.setCenter(centerX, centerY);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue