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) {