From c674690599d24099dc85b7f8580430650b4a092a Mon Sep 17 00:00:00 2001 From: deathcap Date: Tue, 10 Dec 2013 18:49:04 -0800 Subject: [PATCH] Don't load materials on initialization if none given. Allows for dynamic material loading. --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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()