mirror of
https://github.com/scratchfoundation/scratch-vm.git
synced 2025-01-09 14:32:07 -05:00
Disable unimplemented broadcast block
This commit is contained in:
parent
c21700380f
commit
bcd058bdc4
1 changed files with 2 additions and 11 deletions
|
@ -27,17 +27,8 @@ Scratch3EventBlocks.prototype.whenBroadcastReceived = function() {
|
|||
// No-op
|
||||
};
|
||||
|
||||
Scratch3EventBlocks.prototype.broadcast = function(argValues, util) {
|
||||
util.startHats(function(hat) {
|
||||
if (hat.opcode === 'event_whenbroadcastreceived') {
|
||||
var shadows = hat.fields.CHOICE.blocks;
|
||||
for (var sb in shadows) {
|
||||
var shadowblock = shadows[sb];
|
||||
return shadowblock.fields.CHOICE.value === argValues[0];
|
||||
}
|
||||
}
|
||||
return false;
|
||||
});
|
||||
Scratch3EventBlocks.prototype.broadcast = function() {
|
||||
// @todo
|
||||
};
|
||||
|
||||
module.exports = Scratch3EventBlocks;
|
||||
|
|
Loading…
Reference in a new issue