diff --git a/extensions/obviousAlexC/3DMath.js b/extensions/obviousAlexC/3DMath.js index fd23a89fc6..9a9e30c8c8 100644 --- a/extensions/obviousAlexC/3DMath.js +++ b/extensions/obviousAlexC/3DMath.js @@ -84,7 +84,7 @@ axis = Scratch.Cast.toNumber(axis); vector = JSON.parse(vector); if (vector) { - return JSON.parse(vector)[axis]; + return vector[axis]; } return 0; } @@ -393,7 +393,7 @@ axis = Scratch.Cast.toNumber(axis); vector = JSON.parse(vector); if (vector) { - return JSON.parse(vector)[axis]; + return vector[axis]; } return 0; }