fix(webui): proper PvPVariant check
All checks were successful
Build / build (pull_request) Successful in 53s

Closes #2584
This commit is contained in:
AMelonInsideLemon 2025-08-04 13:36:26 +02:00
parent dd7bacd22e
commit da39bacf74

View File

@ -153,7 +153,7 @@ const getItemListsController: RequestHandler = (req, response) => {
}
for (const [uniqueName, item] of Object.entries(ExportWeapons)) {
if (item.partType) {
if (!item.excludeFromCodex) {
if (!uniqueName.split("/")[7]?.startsWith("PvPVariant")) {
// not a pvp variant
if (!uniqueName.startsWith("/Lotus/Types/Items/Deimos/")) {
res.ModularParts.push({