Skip to content

Commit

Permalink
Update procedures.js plz work
Browse files Browse the repository at this point in the history
  • Loading branch information
SharkPool-SP authored Aug 18, 2024
1 parent da20e53 commit be4f4a7
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions core/procedures.js
Original file line number Diff line number Diff line change
Expand Up @@ -254,8 +254,6 @@ Blockly.Procedures.flyoutCategory = function(workspace) {
'</shadow>' +
'</value>' +
'</block>' +
'</xml>' +
'<xml>' +
'<block type="procedures_return">' +
'<value name="return">' +
'<shadow type="text">' +
Expand Down Expand Up @@ -439,6 +437,18 @@ Blockly.Procedures.createProcedureCallbackFactory_ = function(workspace) {
if (mutation) {
var returns = JSON.parse(mutation.getAttribute('returns'))
var returnBlockText =
'<next>' +
'<block type="procedures_set">' +
'<value name="PARAM">' +
'<shadow type="null"></shadow>' +
'</value>' +
'<value name="VALUE">' +
'<shadow type="text">' +
'<field name="TEXT">value</field>' +
'</shadow>' +
'</value>' +
'</block>' +
'</next>' +
'<next>' +
'<block type="procedures_return">' +
'<value name="return">' +
Expand Down

0 comments on commit be4f4a7

Please sign in to comment.