diff --git a/package.json b/package.json index 64d02e3..2e14916 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "computercraft-mutil", - "version": "1.0.7", + "version": "1.0.8", "description": "", "license": "ISC", "author": "", diff --git a/src/quaternion.ts b/src/quaternion.ts index 12005c6..a256600 100644 --- a/src/quaternion.ts +++ b/src/quaternion.ts @@ -1,12 +1,14 @@ import { Vec3 } from "./vec"; +const math = globalThis.math; + export class Quaternion { public constructor( public x: number, public y: number, public z: number, public w: number, - ) { } + ) {} public static fromXYZ({ x, diff --git a/tsconfig.json b/tsconfig.json index 0c6d21c..62b53ec 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -14,7 +14,8 @@ "tstl": { "luaTarget": "JIT", "buildMode": "library", - "noImplicitSelf": true + "noImplicitSelf": true, + "noImplicitGlobalVariables": true }, "include": ["src/**/*"] }