From cacd46527a6615f70aa5ba3a80b8cbb0dd36af19 Mon Sep 17 00:00:00 2001 From: -=yb4f310 Date: Thu, 16 Nov 2017 00:25:54 +0100 Subject: [PATCH] Update: CC - Before Render - Moorcow (to6trvr3fj.js) 36 bytes modified --- to6trvr3fj.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/to6trvr3fj.js b/to6trvr3fj.js index ef77e37..9ad9118 100644 --- a/to6trvr3fj.js +++ b/to6trvr3fj.js @@ -343,17 +343,17 @@ if (this.mouseIsDown) { /** * This happens to trees */ - if (GameLib.Utils.UndefinedOrNull(mesh.userData.life)) { - mesh.userData.life = 1.2; + if (GameLib.Utils.UndefinedOrNull(mesh.life)) { + mesh.life = 1.2; } - mesh.userData.life -= 0.2; + mesh.life -= 0.2; // Don't do the color instance //mesh.materials[0].color.instance = mesh.instance.material.color; - if (mesh.userData.life <= 0) { + if (mesh.life <= 0) { this.burnTree(mesh); if (mesh.instance.material.emissive) {