XFE Git
XFE Studio Git
Git 首页 全局搜索
XFE 主站 文档 NuGet

SpaceNinjaServer

A simple server for a small space ninja game

公开
关注 0 Fork 1 Star 0
返回提交历史

XFEstudio/SpaceNinjaServer

fix: properly commit boosters to inventory (#1279)

Reviewed-on: https://onlyg.it/OpenWF/SpaceNinjaServer/pulls/1279

4b3b551b
Sainan <sainan@calamity.inc>
提交于

代码差异

1 个文件 +1 -1
Modified src/services/inventoryService.ts +1 -1
@@ -1286,7 +1286,7 @@ export const addMissionComplete = (inventory: TInventoryDatabaseDocument, { Tag,
1286 1286 };
1287 1287
1288 1288 export const addBooster = (ItemType: string, time: number, inventory: TInventoryDatabaseDocument): void => {
1289 const currentTime = Math.floor(Date.now() / 1000) - 129600; // Value is wrong without 129600. Figure out why, please. :)
1289 const currentTime = Math.floor(Date.now() / 1000);
1290 1290
1291 1291 const { Boosters } = inventory;
1292 1292