forked from OpenWF/SpaceNinjaServer
		
	fix(webui): proper PvPVariant check (#2585)
Closes #2584 Reviewed-on: OpenWF/SpaceNinjaServer#2585 Co-authored-by: AMelonInsideLemon <166175391+AMelonInsideLemon@users.noreply.github.com> Co-committed-by: AMelonInsideLemon <166175391+AMelonInsideLemon@users.noreply.github.com>
This commit is contained in:
		
							parent
							
								
									dd7bacd22e
								
							
						
					
					
						commit
						ebfef52fb1
					
				@ -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({
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user