sort chunks

This commit is contained in:
LabyStudio
2022-02-02 16:22:33 +01:00
parent c5fd75de47
commit 9a70a3cc37
4 changed files with 19 additions and 4 deletions
+2 -2
View File
@@ -15,7 +15,7 @@ window.Minecraft = class {
Block.create();
// Create world
this.world = new World();
this.world = new World(this);
this.worldRenderer.scene.add(this.world.group);
// Create player
@@ -78,7 +78,7 @@ window.Minecraft = class {
this.window.mouseMotionX = 0;
this.window.mouseMotionY = 0;
}
while (this.world.updateLights()) ;
// Render the game