From b4205372c329e256012ca3067f0d935fe71d233a Mon Sep 17 00:00:00 2001 From: picklesrus Date: Mon, 7 May 2018 16:02:17 -0700 Subject: [PATCH] Change name of opcode to speech_ from speech.Plus, remove old comment. --- src/extensions/scratch3_speech/index.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/extensions/scratch3_speech/index.js b/src/extensions/scratch3_speech/index.js index a1ce64f60..117362f68 100644 --- a/src/extensions/scratch3_speech/index.js +++ b/src/extensions/scratch3_speech/index.js @@ -175,7 +175,6 @@ class Scratch3SpeechBlocks { // Threshold for diff match patch to use: (0.0 = perfection, 1.0 = very loose). this._dmp.Match_Threshold = 0.3; - // Come back and figure out which of these I really need. this._newSocketCallback = this._newSocketCallback.bind(this); this._setupSocketCallback = this._setupSocketCallback.bind(this); this._socketMessageCallback = this._socketMessageCallback.bind(this); @@ -268,7 +267,7 @@ class Scratch3SpeechBlocks { this.runtime.targets.forEach(target => { target.blocks._scripts.forEach(id => { const b = target.blocks.getBlock(id); - if (b.opcode === 'speech.whenIHearHat') { + if (b.opcode === 'speech_whenIHearHat') { // Grab the text from the hat block's shadow. const inputId = b.inputs.PHRASE.block; const inputBlock = target.blocks.getBlock(inputId);