Skip to content

Commit

Permalink
Don't load materials on initialization if none given. Allows for dyna…
Browse files Browse the repository at this point in the history
…mic material loading.
  • Loading branch information
deathcap committed Dec 11, 2013
1 parent b3206df commit c674690
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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()

Expand Down

0 comments on commit c674690

Please sign in to comment.