File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -865,14 +865,14 @@ class ScriptTreeGenerator {
865865 return new IntermediateStackBlock ( StackOpcode . MOTION_DIRECTION_SET , {
866866 direction : new IntermediateInput ( InputOpcode . OP_SUBTRACT , InputType . NUMBER , {
867867 left : new IntermediateInput ( InputOpcode . MOTION_DIRECTION_GET , InputType . NUMBER ) ,
868- right : this . descendInputOfBlock ( block , 'DEGREES' )
868+ right : this . descendInputOfBlock ( block , 'DEGREES' ) . toType ( InputType . NUMBER )
869869 } )
870870 } ) ;
871871 case 'motion_turnright' :
872872 return new IntermediateStackBlock ( StackOpcode . MOTION_DIRECTION_SET , {
873873 direction : new IntermediateInput ( InputOpcode . OP_ADD , InputType . NUMBER , {
874874 left : new IntermediateInput ( InputOpcode . MOTION_DIRECTION_GET , InputType . NUMBER ) ,
875- right : this . descendInputOfBlock ( block , 'DEGREES' )
875+ right : this . descendInputOfBlock ( block , 'DEGREES' ) . toType ( InputType . NUMBER )
876876 } )
877877 } ) ;
878878
You can’t perform that action at this time.
0 commit comments