Map costumeName -> costumenumbername [name]

...instead of mapping to a new obsolete/hidden block 'costumename'.
Thanks to @kchadha for helping with this!
This commit is contained in:
Florrie 2018-06-12 19:27:35 -03:00
parent 93d6b23772
commit 24c6338302
2 changed files with 7 additions and 1 deletions

View file

@ -954,6 +954,12 @@ const parseBlock = function (sb2block, addBroadcastMsg, getVariableId, extension
value: 'number'
};
break;
case 'costumeName':
activeBlock.fields.NUMBER_NAME = {
name: 'NUMBER_NAME',
value: 'name'
};
break;
}
// Special cases to generate mutations.

View file

@ -429,7 +429,7 @@ const specMap = {
]
},
'costumeName': {
opcode: 'looks_costumename',
opcode: 'looks_costumenumbername',
argMap: [
]
},