aboutsummaryrefslogtreecommitdiff
path: root/webAO/packets/handlers/handleID.ts
diff options
context:
space:
mode:
authorstonedDiscord <Tukz@gmx.de>2026-01-28 18:13:07 +0100
committerGitHub <noreply@github.com>2026-01-28 18:13:07 +0100
commite18f2a46f3f4bfa7881b8cbc254c10f6eb570040 (patch)
tree022efa1e5c590302290b54999b813efc81c7358b /webAO/packets/handlers/handleID.ts
parent0e4d714c1a6042a448e699176c1fbc84a89393c4 (diff)
parentfe44f280dc6b80edbee09de1ddc4742feb46c46c (diff)
Merge pull request #289 from OmniTroid/esbuild
Esbuild
Diffstat (limited to 'webAO/packets/handlers/handleID.ts')
-rw-r--r--webAO/packets/handlers/handleID.ts4
1 files changed, 3 insertions, 1 deletions
diff --git a/webAO/packets/handlers/handleID.ts b/webAO/packets/handlers/handleID.ts
index cba2f09..17f43f9 100644
--- a/webAO/packets/handlers/handleID.ts
+++ b/webAO/packets/handlers/handleID.ts
@@ -1,5 +1,7 @@
import { client, setOldLoading } from "../../client";
-const version = process.env.npm_package_version;
+import pkg from "../../../package.json";
+
+const version = pkg.version;
/**
* Identifies the server and issues a playerID