Skip to content
Snippets Groups Projects
Commit 930b2ec0 authored by Christopher Willis-Ford's avatar Christopher Willis-Ford
Browse files

setOutput takes a Boolean, not a type

parent c9d15359
No related branches found
No related tags found
No related merge requests found
......@@ -49,14 +49,14 @@ const defineDynamicBlock = (ScratchBlocks, categoryInfo, staticBlockInfo, extend
this.setNextStatement(!blockInfo.isTerminal);
break;
case BlockType.REPORTER:
this.setOutput('String'); // TODO: distinguish number & string here?
this.setOutput(true);
this.setOutputShape(ScratchBlocks.OUTPUT_SHAPE_ROUND);
if (!blockInfo.disableMonitor) {
this.setCheckboxInFlyout(true);
}
break;
case BlockType.BOOLEAN:
this.setOutput('Boolean');
this.setOutput(true);
this.setOutputShape(ScratchBlocks.OUTPUT_SHAPE_HEXAGONAL);
break;
case BlockType.HAT:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment