From 4859558479bc95d893aabedf72f8d2beb0379497 Mon Sep 17 00:00:00 2001 From: onezDerv Date: Sun, 29 Sep 2024 03:57:50 -0400 Subject: [PATCH] relocation --- common/player.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/common/player.js b/common/player.js index cd7592e..20d6dbf 100644 --- a/common/player.js +++ b/common/player.js @@ -1,3 +1,7 @@ +if (!crypto) { + crypto = import('node:crypto'); +} + function distF(ent, target) { return ((ent.pos.x - target.pos.x) ** 2) + ((ent.pos.y - target.pos.y) ** 2) }