Compare commits
3 Commits
c97cfabfa4
...
76293a6529
Author | SHA1 | Date | |
---|---|---|---|
76293a6529 | |||
2fd74e5405 | |||
8acb33f844 |
@@ -48,7 +48,12 @@ export const ezppfarm = {
|
|||||||
'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/128.0.0.0 Safari/537.36 Edg/128.0.0.0',
|
'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/128.0.0.0 Safari/537.36 Edg/128.0.0.0',
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
if (request.error) return undefined;
|
console.log(request.error);
|
||||||
|
if (request.error) {
|
||||||
|
if (request.error.status >= 500 && request.error.status < 600)
|
||||||
|
throw new Error('Server not reachable');
|
||||||
|
return undefined;
|
||||||
|
}
|
||||||
return request.data;
|
return request.data;
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
@@ -49,9 +49,9 @@
|
|||||||
const velocityX = mouseX - lastMouseX;
|
const velocityX = mouseX - lastMouseX;
|
||||||
const velocityY = mouseY - lastMouseY;
|
const velocityY = mouseY - lastMouseY;
|
||||||
|
|
||||||
if (!applyRotation && isMouseDown && velocityX * velocityX + velocityY * velocityY > 50) {
|
const dist = Math.sqrt(velocityX * velocityX + velocityY * velocityY);
|
||||||
applyRotation = true;
|
|
||||||
}
|
if (!applyRotation && isMouseDown && dist > 10) applyRotation = true;
|
||||||
|
|
||||||
let newDegrees = (Math.atan2(-deltaX, deltaY) * 180) / Math.PI + 24.3;
|
let newDegrees = (Math.atan2(-deltaX, deltaY) * 180) / Math.PI + 24.3;
|
||||||
|
|
||||||
|
@@ -297,7 +297,7 @@
|
|||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<Play />
|
<Play />
|
||||||
Launch
|
Launch {$server_connection_fails > 1 ? 'offline' : ''}
|
||||||
</Button>
|
</Button>
|
||||||
</div>
|
</div>
|
||||||
<div
|
<div
|
||||||
|
Reference in New Issue
Block a user