mirror of
https://github.com/scratchfoundation/scratch-vm.git
synced 2024-12-24 06:52:40 -05:00
Fix stage checking
This commit is contained in:
parent
4713f47fb7
commit
26cfbfe588
1 changed files with 1 additions and 1 deletions
|
@ -251,7 +251,7 @@ const parseMonitorObject = (object, runtime, targets, extensions) => {
|
|||
let isSpriteLocalVariable;
|
||||
if (object.cmd === 'getVar:' || object.cmd === 'contentsOfList:') {
|
||||
// These monitors are sprite-specific if they are not targetting the stage.
|
||||
isSpriteLocalVariable = object.target.isStage;
|
||||
isSpriteLocalVariable = !target.isStage;
|
||||
// Variable getters have special block IDs for the toolbox that match the variable ID.
|
||||
block.id = getVariableId(object.param);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue