aboutsummaryrefslogtreecommitdiff
path: root/webAO/packets
diff options
context:
space:
mode:
Diffstat (limited to 'webAO/packets')
-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