From b6dcb31fca97ca56d1953b6f8b564ebaf33a3570 Mon Sep 17 00:00:00 2001 From: godslayerakp <74981904+RedMan13@users.noreply.github.com> Date: Wed, 7 Feb 2024 01:50:48 -0800 Subject: [PATCH] dont error on le invalid --- blocks_vertical/procedures.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/blocks_vertical/procedures.js b/blocks_vertical/procedures.js index d91d839ec8..998473c70a 100644 --- a/blocks_vertical/procedures.js +++ b/blocks_vertical/procedures.js @@ -307,8 +307,13 @@ Blockly.ScratchBlocks.ProcedureUtils.createAllInputs_ = function(connectionMap) if (component.substring(0, 1) == '%') { var argumentType = component.substring(1, 2); if (!(argumentType == 'n' || argumentType == 'b' || argumentType == 's')) { + labelText = component.trim(); + continue + /* + // user error shouldnt literally nuke the app, ignore invalid markers instead of erroring on them throw new Error( 'Found an custom procedure with an invalid type: ' + argumentType); + */ } labelText = component.substring(2).trim();