From 037a089511c237608d0a35773cc16bde7ec48107 Mon Sep 17 00:00:00 2001 From: -=yb4f310 Date: Wed, 15 Nov 2017 19:27:10 +0100 Subject: [PATCH] Update: CC - Before Render - Moorcow (7p8dxknb7m.js) 40 bytes modified --- 7p8dxknb7m.js | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/7p8dxknb7m.js b/7p8dxknb7m.js index bb849bd..5fbc351 100644 --- a/7p8dxknb7m.js +++ b/7p8dxknb7m.js @@ -219,26 +219,25 @@ if (GameLib.Utils.UndefinedOrNull(this.initialized)) { this.burnTree = function(mesh) { - if (mesh.userData.burning) { + if (mesh.burning) { /** * Do nothing, this tree is burning */ } else { - mesh.userData.burning = true; + mesh.burning = true; var smokeParticleEngine = this.smokeParticleEngine.clone(); smokeParticleEngine.position = mesh.position.clone(); smokeParticleEngine.updateInstance('position'); smokeParticleEngine.enabled = true; - mesh.userData.smokeParticleEngine = smokeParticleEngine; + mesh.smokeParticleEngine = smokeParticleEngine; var fireParticleEngine = this.fireParticleEngine.clone(); fireParticleEngine.position = mesh.position.clone(); fireParticleEngine.updateInstance('position'); fireParticleEngine.enabled = true; - mesh.userData.fireParticleEngine = fireParticleEngine; - + mesh.fireParticleEngine = fireParticleEngine; } } }