Update: CC - Before Render - Moorcow (to6trvr3fj.js) 36 bytes modified

beta.r3js.org
-=yb4f310 2017-11-16 00:25:54 +01:00
parent 5aa1d1117b
commit cacd46527a
1 changed files with 4 additions and 4 deletions

View File

@ -343,17 +343,17 @@ if (this.mouseIsDown) {
/** /**
* This happens to trees * This happens to trees
*/ */
if (GameLib.Utils.UndefinedOrNull(mesh.userData.life)) { if (GameLib.Utils.UndefinedOrNull(mesh.life)) {
mesh.userData.life = 1.2; mesh.life = 1.2;
} }
mesh.userData.life -= 0.2; mesh.life -= 0.2;
// Don't do the color instance // Don't do the color instance
//mesh.materials[0].color.instance = mesh.instance.material.color; //mesh.materials[0].color.instance = mesh.instance.material.color;
if (mesh.userData.life <= 0) { if (mesh.life <= 0) {
this.burnTree(mesh); this.burnTree(mesh);
if (mesh.instance.material.emissive) { if (mesh.instance.material.emissive) {