mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-05 19:11:50 +00:00
fix generator area centering
This commit is contained in:
parent
c110fafbcf
commit
98813472a8
3 changed files with 6 additions and 8 deletions
|
|
@ -77,8 +77,8 @@ void LevelController::update(float delta, bool pause) {
|
|||
player->updateEntity();
|
||||
glm::vec3 position = player->getPosition();
|
||||
player->chunks->configure(
|
||||
position.x,
|
||||
position.z,
|
||||
glm::floor(position.x),
|
||||
glm::floor(position.z),
|
||||
settings.chunks.loadDistance.get() + settings.chunks.padding.get()
|
||||
);
|
||||
chunks->update(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue