fix: acrithis vendor freezing with fullyStockedVendors (#2326)
Permanent offers were not satisfying bin constraints Reviewed-on: OpenWF/SpaceNinjaServer#2326 Co-authored-by: Sainan <63328889+Sainan@users.noreply.github.com> Co-committed-by: Sainan <63328889+Sainan@users.noreply.github.com>
This commit is contained in:
		
							parent
							
								
									bbccee0637
								
							
						
					
					
						commit
						3cae42c7d6
					
				@ -281,6 +281,10 @@ const generateVendorManifest = (
 | 
				
			|||||||
                        offersToAdd.push(item);
 | 
					                        offersToAdd.push(item);
 | 
				
			||||||
                        ++offset;
 | 
					                        ++offset;
 | 
				
			||||||
                    }
 | 
					                    }
 | 
				
			||||||
 | 
					                    if (missingItemsPerBin[item.bin]) {
 | 
				
			||||||
 | 
					                        missingItemsPerBin[item.bin] -= 1;
 | 
				
			||||||
 | 
					                        numOffersThatNeedToMatchABin -= 1;
 | 
				
			||||||
 | 
					                    }
 | 
				
			||||||
                } else {
 | 
					                } else {
 | 
				
			||||||
                    numCountedOffers += 1 + item.duplicates;
 | 
					                    numCountedOffers += 1 + item.duplicates;
 | 
				
			||||||
                }
 | 
					                }
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user