mirror of
https://github.com/scratchfoundation/scratch-vm.git
synced 2024-12-24 06:52:40 -05:00
Change name of opcode to speech_ from speech.Plus, remove old comment.
This commit is contained in:
parent
adf5d0acfd
commit
a2eee6a1dd
1 changed files with 1 additions and 2 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue