Fix not regening the LODs when changing dimensions

This commit is contained in:
James Seibel
2021-02-28 16:15:40 -06:00
parent 8babc5aa65
commit 306f575edd
@@ -179,7 +179,6 @@ public class LodRenderer
// nope, the player hasn't moved, the
// render distance hasn't changed, and
// the dimension is the same
regen = false;
}
lodDimension = newDimension;
@@ -241,6 +240,9 @@ public class LodRenderer
// generate the LODs on a separate thread to prevent stuttering or freezing
generateLodBuffersAsync(player.getPosX(), player.getPosZ(), numbChunksWide);
// the regen process has been started
regen = false;
}
// replace the buffers used to draw and build,