diff --git a/src/engine/runtime.js b/src/engine/runtime.js index a56c063c..aff2a3ae 100644 --- a/src/engine/runtime.js +++ b/src/engine/runtime.js @@ -233,6 +233,9 @@ Runtime.prototype._step = function () { * @param {boolean} isGlowing True to turn on glow; false to turn off. */ Runtime.prototype.glowBlock = function (blockId, isGlowing) { + if (!this.blocks.getBlock(blockId)) { + return; + } if (isGlowing) { this.emit(Runtime.BLOCK_GLOW_ON, blockId); } else {