From 6b71a16183589c1b3e44c3dc77dda096416954cd Mon Sep 17 00:00:00 2001 From: -=yb4f310 Date: Wed, 7 Mar 2018 08:14:48 +0100 Subject: [PATCH] Update: CC - Entity Loaded - Moorcow (hv7vehw7se.js) 25 bytes modified --- hv7vehw7se.js | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/hv7vehw7se.js b/hv7vehw7se.js index 8baf41b..73cf536 100644 --- a/hv7vehw7se.js +++ b/hv7vehw7se.js @@ -1429,24 +1429,26 @@ burningTreeParticleEngine.updateInstance('position'); this.treeLarge.burningTreeParticleEngine = burningTreeParticleEngine; +var type = 0; for (var x = -50; x < 50; x += 10) { for (var z = -170; z > -230; z -= 10) { - var random = GameLib.Utils.GetRandomIntInclusive(1, 3); - - if (random === 1) { + type++; + + if (type === 1) { mesh = treeSmall.clone(); mesh.position.y = -14.19; } - if (random === 2) { + if (type === 2) { mesh = treeMedium.clone(); mesh.position.y = -10.26; } - if (random === 3) { + if (type === 3) { mesh = treeLarge.clone(); mesh.position.y = -4.43; + type = 1; } material = materialTreesAndRocks.clone();