Spaces:
Runtime error
Runtime error
Update src/addons/addons/cat-blocks/userscript.js
Browse files
src/addons/addons/cat-blocks/userscript.js
CHANGED
@@ -276,6 +276,7 @@ export default async function ({ addon, console }) {
|
|
276 |
this.sa_catBlockConstructor();
|
277 |
}
|
278 |
const r = originalRenderDraw.call(this, ...args);
|
|
|
279 |
if (!this.outputConnection && !this.previousConnection) {
|
280 |
this.initCatStuff();
|
281 |
}
|
@@ -341,4 +342,4 @@ export default async function ({ addon, console }) {
|
|
341 |
workspace.toolboxRefreshEnabled_ = true;
|
342 |
}
|
343 |
}
|
344 |
-
}
|
|
|
276 |
this.sa_catBlockConstructor();
|
277 |
}
|
278 |
const r = originalRenderDraw.call(this, ...args);
|
279 |
+
if (this.output_ !== undefined) return r;
|
280 |
if (!this.outputConnection && !this.previousConnection) {
|
281 |
this.initCatStuff();
|
282 |
}
|
|
|
342 |
workspace.toolboxRefreshEnabled_ = true;
|
343 |
}
|
344 |
}
|
345 |
+
}
|