From 4d1a86660c661cebf49ed2fa991626166e487cfe Mon Sep 17 00:00:00 2001 From: -=yb4f310 Date: Sun, 26 Nov 2017 21:30:39 +0100 Subject: [PATCH] Update: CC - Entity Loaded - Moorcow (v6a7eh2o29.js) 90 bytes modified --- v6a7eh2o29.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/v6a7eh2o29.js b/v6a7eh2o29.js index d4f3a7f..ce60d83 100644 --- a/v6a7eh2o29.js +++ b/v6a7eh2o29.js @@ -115,6 +115,11 @@ this.createMesh = function(meshType, type) { var mesh = this[type].clone(); var material = this[type].materials[0].clone(); mesh.materials = [material]; + + if (typeof this.meshes[meshType] === 'undefined') { + this.meshes[meshType] = []; + } + this.meshes[meshType].push( { inUse : false,