Skip to content

Commit 39de860

Browse files
committed
Fix pen color- stop converting hex codes to numbers
1 parent 45ce13b commit 39de860

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/compiler/irgen.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -459,8 +459,8 @@ class ScriptTreeGenerator {
459459

460460
case 'sensing_coloristouchingcolor':
461461
return new IntermediateInput(InputOpcode.SENSING_COLOR_TOUCHING_COLOR, InputType.BOOLEAN, {
462-
target: this.descendInputOfBlock(block, 'COLOR2').toType(InputType.NUMBER),
463-
mask: this.descendInputOfBlock(block, 'COLOR').toType(InputType.NUMBER)
462+
target: this.descendInputOfBlock(block, 'COLOR2'),
463+
mask: this.descendInputOfBlock(block, 'COLOR')
464464
});
465465
case 'sensing_current':
466466
switch (block.fields.CURRENTMENU.value.toLowerCase()) {
@@ -868,7 +868,7 @@ class ScriptTreeGenerator {
868868
});
869869
case 'pen_setPenColorToColor':
870870
return new IntermediateStackBlock(StackOpcode.PEN_COLOR_SET, {
871-
color: this.descendInputOfBlock(block, 'COLOR').toType(InputType.NUMBER)
871+
color: this.descendInputOfBlock(block, 'COLOR')
872872
});
873873
case 'pen_setPenHueToNumber':
874874
return new IntermediateStackBlock(StackOpcode.PEN_COLOR_HUE_SET_LEGACY, {

0 commit comments

Comments
 (0)