diff --git a/index.js b/index.js index 24bda36..43ec36a 100644 --- a/index.js +++ b/index.js @@ -106,7 +106,7 @@ function Game(opts) { self.removeFarChunks() }) - if (this.isClient) this.materials.load(this.materialNames) + if (this.isClient && this.materialNames.length) this.materials.load(this.materialNames) if (this.generateChunks) this.handleChunkGeneration()