load chunk if not loaded
This commit is contained in:
@@ -555,6 +555,7 @@ export default class WorldRenderer {
|
|||||||
if (distanceX < renderDistance && distanceZ < renderDistance) {
|
if (distanceX < renderDistance && distanceZ < renderDistance) {
|
||||||
// Make chunk visible
|
// Make chunk visible
|
||||||
chunk.group.visible = true;
|
chunk.group.visible = true;
|
||||||
|
chunk.loaded = true;
|
||||||
|
|
||||||
// For all chunk sections
|
// For all chunk sections
|
||||||
for (let y in chunk.sections) {
|
for (let y in chunk.sections) {
|
||||||
|
|||||||
Reference in New Issue
Block a user