Skip to content

Commit f7c6fa3

Browse files
authored
fix iterators on the port
1 parent 845accf commit f7c6fa3

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

static/extensions/Div/divIterators.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -148,13 +148,13 @@
148148
Block: {
149149
blockType: BlockType.REPORTER,
150150
//blockShape: "divIterator",
151-
blockShape: vm.pmVersion ? BlockShape.ARROW : "divIterator",
151+
blockShape: vm.runtime.pmVersion ? BlockShape.ARROW : "divIterator",
152152
forceOutputType: "Iterator",
153153
allowDropAnywhere: true,
154154
disableMonitor: true
155155
},
156156
Argument: {
157-
shape: vm.pmVersion ? BlockShape.ARROW : "divIterator",
157+
shape: vm.runtime.pmVersion ? BlockShape.ARROW : "divIterator",
158158
exemptFromNormalization: true,
159159
check: ["Iterator"]
160160
},
@@ -483,7 +483,7 @@
483483
vm.divFromIter ??= new Map()
484484

485485
// If this isn't on the port, use a custom arrow shape
486-
if(!vm.pmVersion) {
486+
if(!vm.runtime.pmVersion) {
487487
Scratch.gui.getBlockly().then(ScratchBlocks => {
488488
ScratchBlocks.BlockSvg.registerCustomShape("divIterator", {
489489
emptyInputPath: ScratchBlocks.BlockSvg.getInputShapeInfo_(Scratch.BlockShape.ARROW).path,// `m 16 0 h 15 q 3 0 5 2 l 8 8 q 3 3 3 4 v 4 q 0 1 -3 4 l -8 8 q -2 2 -5 2 h -15 h -11 c -2 0 -3 0 -4 -1 s -1 -3 0 -4 l 9 -9 v -4 l -8 -8 c -2 -2 -2 -4 -1 -5 s 2 -1 4 -1 h 11 z`,

0 commit comments

Comments
 (0)