mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-11 22:11:51 +00:00
fix generator area centering
This commit is contained in:
parent
c110fafbcf
commit
98813472a8
3 changed files with 6 additions and 8 deletions
|
|
@ -355,9 +355,7 @@ void WorldGenerator::generateHeightmap(
|
|||
|
||||
void WorldGenerator::update(int centerX, int centerY, int loadDistance) {
|
||||
surroundMap.setCenter(centerX, centerY);
|
||||
// 3 is safety padding preventing ChunksController rounding problem
|
||||
// FIXME
|
||||
surroundMap.resize(loadDistance + 3);
|
||||
surroundMap.resize(loadDistance);
|
||||
surroundMap.setCenter(centerX, centerY);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue