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: don't add raw riven mods with fingerprints (#2976)

Closes #2967 Reviewed-on: https://onlyg.it/OpenWF/SpaceNinjaServer/pulls/2976 Co-authored-by: Sainan <63328889+Sainan@users.noreply.github.com> Co-committed-by: Sainan <63328889+Sainan@users.noreply.github.com>

6e9c787c
Sainan <63328889+Sainan@users.noreply.github.com>
提交于

代码差异

1 个文件 +3 -1
Modified src/services/inventoryService.ts +3 -1
@@ -473,7 +473,9 @@ export const addItem = async (
473 473 return addCustomization(inventory, typeName);
474 474 }
475 475 if (typeName in ExportUpgrades || typeName in ExportArcanes) {
476 if (targetFingerprint) {
476 if (targetFingerprint && typeName.startsWith("/Lotus/Upgrades/Mods/Randomized/Raw")) {
477 logger.debug(`ignoring fingerprint for raw riven mod`);
478 } else if (targetFingerprint) {
477 479 if (quantity != 1) {
478 480 logger.warn(`adding 1 of ${typeName} ${targetFingerprint} even tho quantity ${quantity} was requested`);
479 481 }