From 6480d2ee37f23dcdb0327c9341f37b9c228ca3ad Mon Sep 17 00:00:00 2001 From: JeremyGamer13 <69337718+JeremyGamer13@users.noreply.github.com> Date: Thu, 18 Apr 2024 21:16:39 -0600 Subject: [PATCH] Revert "one day, blockly, there will be a very very very old and tired man who will come up to your door and knock three times. this man will ask to some inside for food and rest. if you let this man inside then three of your children will go missing the following weeks. after this slowly the pieces of wood that make up your house will one by one go missing. if you do not let the man in, then in your sleep you will be locked into your room, tighed down to your bed, and your house set aflame" This reverts commit 3707e42595574d49ad81a2a1ccc6f9c51a50617c. --- core/block.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/block.js b/core/block.js index c63a8b8c21..daae3a6fc1 100644 --- a/core/block.js +++ b/core/block.js @@ -1522,7 +1522,7 @@ Blockly.Block.prototype.appendInput_ = function(type, name, opt_defaultBlock) { if (opt_defaultBlock) { var newBlock = this.workspace.newBlock(opt_defaultBlock.type) newBlock.initSvg() - if (typeof type.value !== 'undefined' && newBlock.inputList[0] && newBlock.inputList[0].fieldRow[0] && newBlock.inputList[0].fieldRow[0].setValue) newBlock.inputList[0].fieldRow[0].setValue(type.value) + if (typeof type.value !== 'undefined') newBlock.inputList[0]?.fieldRow?.[0]?.setValue?.(type.value) newBlock.setShadow(true) newBlock.outputConnection.connect(connection) newBlock.render()