From 1d66189625e7d77311a15a94e1e85a605f184167 Mon Sep 17 00:00:00 2001 From: -=yb4f310 Date: Sun, 18 Feb 2018 18:25:07 +0100 Subject: [PATCH] Update: CC - Bacon - Before Render (o4c478xpx3.js) 20 bytes modified --- o4c478xpx3.js | 28 +++++++++++++--------------- 1 file changed, 13 insertions(+), 15 deletions(-) diff --git a/o4c478xpx3.js b/o4c478xpx3.js index 07f9593..dc4be2c 100644 --- a/o4c478xpx3.js +++ b/o4c478xpx3.js @@ -1,4 +1,3 @@ - if (!this.entityLoaded) { return; } @@ -11,16 +10,16 @@ if (!this.initialized) { this.totalTime = 0; - /** - * Waiting means - this block is on top of some blocks which are busy disappearing - * - so wait for the fall to complete - */ + /** + * Waiting means - this block is on top of some blocks which are busy disappearing + * - so wait for the fall to complete + */ this.waiting = false; - - this.animation = this.entityLoaded.animation; - this.translationSpeed = this.animation.translationSpeed; - + this.animation = this.entityLoaded.animation; + + this.translationSpeed = this.animation.translationSpeed; + this.drop = false; this.moveQueue = []; @@ -39,6 +38,8 @@ if (this.waiting) { if (this.drop) { + this.animation.translationSpeed = 70; + fall = true; if (this.moveQueue && this.moveQueue.length > 0) { @@ -65,9 +66,6 @@ if (this.totalTime > this.entityLoaded.speed) { } if (fall) { - - this.animation.translationSpeed = 70; - moved = this.moveBlock(null, {down: true}, 1, true); } @@ -82,10 +80,10 @@ if (moved === false) { this.drop = false; this.moveQueue = []; - + this.stopBlock(); - - this.animation.translationSpeed = this.translationSpeed; + + this.animation.translationSpeed = this.translationSpeed; } //@ sourceURL=beforeRender.js \ No newline at end of file