leopard-js / sb-edit

Javascript library for manipulating Scratch project files
MIT License
54 stars 15 forks source link

toLeopard: Fix touching edge/mouse block #126

Closed towerofnix closed 8 months ago

towerofnix commented 8 months ago

We broke this in December, and since, then the "touching mouse" and "touching edge" boolean blocks have been serialized to:

this.touching(mouse)
this.touching(edge)

// instead of
this.touching("mouse")
this.touching("edge")

This PR fixes that!

I'm using JSON.stringify instead of just e.g. "\"mouse\"" because it conveys the same meaning as other general uses, including e.g. spriteInputToJS and increase.