From 8d987799e7784430b30dd3feac5324eec7a19aa7 Mon Sep 17 00:00:00 2001 From: Reece Dunham Date: Mon, 19 Aug 2024 13:07:35 -0400 Subject: [PATCH] fix: Use ServerVer constant Signed-off-by: Reece Dunham --- components/scoreHandler.ts | 15 +++------------ 1 file changed, 3 insertions(+), 12 deletions(-) diff --git a/components/scoreHandler.ts b/components/scoreHandler.ts index a0dc109a..561c8f7e 100644 --- a/components/scoreHandler.ts +++ b/components/scoreHandler.ts @@ -26,6 +26,7 @@ import { isObjectiveActive, levelForXp, PEACOCKVERSTRING, + ServerVer, SNIPER_LEVEL_INFO, sniperLevelForXp, xpRequiredForLevel, @@ -686,12 +687,7 @@ export async function getMissionEndData( Value: { Location: contractData.Metadata.Location, }, - Version: { - _Major: 8, - _Minor: 15, - _Build: 0, - _Revision: 0, - }, + Version: ServerVer, }) } else { // not the final level @@ -1144,12 +1140,7 @@ export async function getMissionEndData( Location: levelData.Metadata.Location, NewLevel: newLocationLevel, }, - Version: { - _Major: 8, - _Minor: 15, - _Build: 0, - _Revision: 0, - }, + Version: ServerVer, }) } }