fix node issue

This commit is contained in:
biglyderv 2024-09-29 04:00:19 -04:00
parent 4859558479
commit fe01081db5
No known key found for this signature in database
GPG key ID: 33AC87E9ACE66954

View file

@ -1,6 +1,4 @@
if (!crypto) { const crypto = (typeof window === 'undefined') ? await import('node:crypto') : crypto;
crypto = import('node:crypto');
}
function distF(ent, target) { function distF(ent, target) {
return ((ent.pos.x - target.pos.x) ** 2) + ((ent.pos.y - target.pos.y) ** 2) return ((ent.pos.x - target.pos.x) ** 2) + ((ent.pos.y - target.pos.y) ** 2)