Skip to content

Commit 540a368

Browse files
Update src/serialization/sb3.js
Co-authored-by: Cubester <78769806+CubesterYT@users.noreply.github.com>
1 parent 6a83bab commit 540a368

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

src/serialization/sb3.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1151,8 +1151,7 @@ const parseScratchObject = function (object, runtime, extensions, zip, assets) {
11511151
// TW: Scratch-Blocks 2.0 doesn't use shadows for procedure prototypes.
11521152
blockJSON.opcode === 'procedures_prototype' ||
11531153
// If we're an argument reporter inside of a prototype:
1154-
((blockJSON.opcode === 'argument_reporter_string_number' ||
1155-
blockJSON.opcode === 'argument_reporter_boolean') &&
1154+
(blockJSON.opcode.startsWith('argument_reporter_') &&
11561155
parent && parent.opcode === 'procedures_prototype')
11571156
){
11581157
blockJSON.shadow = true;

0 commit comments

Comments
 (0)