Spaces:
Running
Running
Update utils/block_relation_builder.py
Browse files
utils/block_relation_builder.py
CHANGED
|
@@ -46,6 +46,9 @@ def generate_blocks_from_opcodes(opcode_counts, all_block_definitions):
|
|
| 46 |
if opcode == "sensing_istouching": # Handle potential old opcode name
|
| 47 |
opcode = "sensing_touchingobject"
|
| 48 |
|
|
|
|
|
|
|
|
|
|
| 49 |
if not opcode or opcode not in all_block_definitions:
|
| 50 |
print(f"Warning: Skipping opcode '{opcode}' (missing or not in definitions).")
|
| 51 |
continue
|
|
|
|
| 46 |
if opcode == "sensing_istouching": # Handle potential old opcode name
|
| 47 |
opcode = "sensing_touchingobject"
|
| 48 |
|
| 49 |
+
if opcode == "sensing_touchingobject": # Handle potential old opcode name
|
| 50 |
+
opcode = "sensing_touchingobject"
|
| 51 |
+
|
| 52 |
if not opcode or opcode not in all_block_definitions:
|
| 53 |
print(f"Warning: Skipping opcode '{opcode}' (missing or not in definitions).")
|
| 54 |
continue
|