item service: detect new items when price scraping

This commit is contained in:
Adam
2019-01-17 19:28:17 -05:00
parent e92df4752b
commit a952ea3bae

View File

@@ -472,6 +472,14 @@ public class ItemService
int idx = random.nextInt(tradeableItems.length);
int id = tradeableItems[idx];
if (getItem(id) == null)
{
// This is a new item..
log.debug("Fetching new item {}", id);
queueItem(id);
return;
}
log.debug("Fetching price for {}", id);
fetchPrice(id);