From d77944beff3c77ef2e60aa0051e36af02dd1025b Mon Sep 17 00:00:00 2001 From: Eric Rosenbaum Date: Fri, 12 Apr 2019 17:09:10 -0400 Subject: [PATCH] Clean up detection of color any --- src/extensions/scratch3_boost/index.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/extensions/scratch3_boost/index.js b/src/extensions/scratch3_boost/index.js index d48b889c6..2631f4e9d 100644 --- a/src/extensions/scratch3_boost/index.js +++ b/src/extensions/scratch3_boost/index.js @@ -1943,10 +1943,11 @@ class Scratch3BoostBlocks { _isColor (colorId) { switch (colorId) { case COLOR_ID_ANY: - if (this._peripheral.color === this._peripheral.previousColor) { - return false; + if (this._peripheral.color !== COLOR_ID_NONE && + this._peripheral.color !== this._peripheral.previousColor) { + return true; } - return true; + return false; default: return colorId === this._peripheral.color; }