fix(blocks): boolean variable block wrong shape for zelos (#7335)

* fix(blocks): boolean variable block wrong shape for zelos

* fixup! fix(blocks): boolean variable block wrong shape for zelos
This commit is contained in:
FangQiJun
2023-08-01 01:39:57 +08:00
committed by GitHub
parent 889310726e
commit f3899e21a5

View File

@@ -625,6 +625,22 @@ export class RenderedConnection extends Connection {
this.sourceBlock_.bumpNeighbours();
}
}
/**
* Change a connection's compatibility.
* Rerender blocks as needed.
*
* @param check Compatible value type or list of value types. Null if all
* types are compatible.
* @returns The connection being modified (to allow chaining).
*/
override setCheck(check: string | string[] | null): RenderedConnection {
super.setCheck(check);
if (this.sourceBlock_.rendered) {
this.sourceBlock_.queueRender();
}
return this;
}
}
export namespace RenderedConnection {