This commit is contained in:
syuilo 2019-05-05 15:17:29 +09:00
parent 64aac9d6ad
commit 73641fd78d
No known key found for this signature in database
GPG Key ID: BDC4C49D06AB9D69

View File

@ -337,7 +337,7 @@ export default Vue.extend({
getScriptBlockList(type: string = null) { getScriptBlockList(type: string = null) {
const list = []; const list = [];
const blocks = blockDefs.filter(block => type === null || block.out === null || block.out === type); const blocks = blockDefs.filter(block => type === null || block.out === null || block.out === type || typeof block.out === 'number');
for (const block of blocks) { for (const block of blocks) {
const category = list.find(x => x.category === block.category); const category = list.find(x => x.category === block.category);