Update injector.js

This commit is contained in:
Murturtle 2024-09-29 02:52:10 -07:00 committed by GitHub
parent b64aa9351f
commit 540c0adba6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1,4 +1,5 @@
globalThis.doEaglerforge = true; globalThis.doEaglerforge = true;
globalThis.optimizePi = true;
function wait(ms) { function wait(ms) {
return new Promise((resolve, reject) => { return new Promise((resolve, reject) => {
setTimeout(() => { resolve(); }, ms); setTimeout(() => { resolve(); }, ms);
@ -135,7 +136,7 @@ var main;(function(){`
); );
} }
); );
console.log(globalThis.optimizePi)
if(globalThis.optimizePi){ if(globalThis.optimizePi){
patchedFile = patchedFile.replaceAll( patchedFile = patchedFile.replaceAll(
"3.1415927410125732 / 180", "3.1415927410125732 / 180",