Skip to content

Commit

Permalink
Particle typeof is now partially usable
Browse files Browse the repository at this point in the history
  • Loading branch information
Nrosa01 committed May 4, 2024
1 parent 8b6bdac commit 451953f
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
Binary file modified src/assets/app.wasm
Binary file not shown.
2 changes: 1 addition & 1 deletion src/assets/blockly/generator.js
Original file line number Diff line number Diff line change
Expand Up @@ -292,7 +292,7 @@ jsonGenerator.forBlock['number_of'] = function (block, generator) {

jsonGenerator.forBlock['type_of'] = function (block, generator) {
const direction = generator.valueToCode(block, 'OTHER', Order.ATOMIC);
const code = `{"number":"typeOf","data":{"direction":"constant","data":${directions[direction]}}}`;
const code = `{"particle_type": "typeOf","data": ${directions[direction]}}`;
return [code, Order.ATOMIC];
}

Expand Down

0 comments on commit 451953f

Please sign in to comment.