Skip to content

Commit

Permalink
Update runtime.js
Browse files Browse the repository at this point in the history
  • Loading branch information
AshimeeAlt authored May 26, 2024
1 parent 5a02b5e commit 20a1c14
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/engine/runtime.js
Original file line number Diff line number Diff line change
Expand Up @@ -1429,6 +1429,12 @@ class Runtime extends EventEmitter {
break;
}

// Check if "blockShape" is specified
if (blockInfo.blockShape) {
blockJSON.outputShape = blockInfo.outputShape || ScratchBlocksConstants.OUTPUT_SHAPE_ROUND;
}


const blockText = Array.isArray(blockInfo.text) ? blockInfo.text : [blockInfo.text];
let inTextNum = 0; // text for the next block "arm" is blockText[inTextNum]
let inBranchNum = 0; // how many branches have we placed into the JSON so far?
Expand Down

0 comments on commit 20a1c14

Please sign in to comment.