setOutput takes a Boolean, not a type

This commit is contained in:
Christopher Willis-Ford committed 2019-06-03 13:04:15 -07:00
1 parent c9d1535967
commit 930b2ec05c
1 file changed
+2 -2
+2 -2
View File
@@ -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: