mirror of
https://github.com/scratchfoundation/scratch-vm.git
synced 2024-12-23 14:32:59 -05:00
Merge pull request #1902 from picklesrus/unknown-monitors
Allow projects with unknown monitors to load.
This commit is contained in:
commit
c33d6caa2b
1 changed files with 7 additions and 0 deletions
|
@ -257,6 +257,13 @@ const globalBroadcastMsgStateGenerator = (function () {
|
|||
*/
|
||||
|
||||
const parseMonitorObject = (object, runtime, targets, extensions) => {
|
||||
// If we can't find the block in the spec map, ignore it.
|
||||
// This happens for things like Lego Wedo 1.0 monitors.
|
||||
const mapped = specMap[object.cmd];
|
||||
if (!mapped) {
|
||||
log.warn(`Could not find monitor block with opcode: ${object.cmd}`);
|
||||
return;
|
||||
}
|
||||
// In scratch 2.0, there are two monitors that now correspond to extension
|
||||
// blocks (tempo and video motion/direction). In the case of the
|
||||
// video motion/direction block, this reporter is not monitorable in Scratch 3.0.
|
||||
|
|
Loading…
Reference in a new issue