返回提交历史
Modified
src/services/inventoryService.ts
+3
-1
XFEstudio/XFESpaceNinjaServer
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
代码差异
1 个文件
+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
}