Skip to content

Commit

Permalink
one day, blockly, there will be a very very very old and tired man wh…
Browse files Browse the repository at this point in the history
…o 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
  • Loading branch information
RedMan13 authored Apr 19, 2024
1 parent 40938b5 commit 3707e42
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/block.js
Original file line number Diff line number Diff line change
Expand Up @@ -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]?.fieldRow?.[0]?.setValue?.(type.value)
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)
newBlock.setShadow(true)
newBlock.outputConnection.connect(connection)
newBlock.render()
Expand Down

0 comments on commit 3707e42

Please sign in to comment.