Skip to content

Commit d51af8a

Browse files
authored
Use the "block" part of the port block. (#355)
1 parent a008904 commit d51af8a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/blocks/mrc_mechanism.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -383,7 +383,7 @@ const MECHANISM = {
383383
let argInput = this.getInput('ARG' + i);
384384
if (argInput && argInput.connection && !argInput.connection.targetBlock()) {
385385
// The input is empty. Create a port block and connect it to the input.
386-
const portBlockState = createPort(this.mrcParameters[i].type);
386+
const portBlockState = createPort(this.mrcParameters[i].type).block;
387387
const portBlock = this.workspace.newBlock(portBlockState.type) as Blockly.BlockSvg;
388388
if (portBlockState.extraState && portBlock.loadExtraState) {
389389
portBlock.loadExtraState(portBlockState.extraState);

0 commit comments

Comments
 (0)