Fix OSB price duplicationon delayed lookup (#5860)

Fixes #5858
This commit is contained in:
Bruno_
2018-10-12 07:58:37 +02:00
committed by Tomas Slusny
parent 2dbc1a9ec5
commit 0f49b90c45

View File

@@ -338,6 +338,12 @@ public class GrandExchangePlugin extends Plugin
executorService.submit(() ->
{
if (geText.getText().contains(OSB_GE_TEXT))
{
// If there are multiple tasks queued and one of them have already added the price
return;
}
try
{
final GrandExchangeResult result = CLIENT.lookupItem(itemId);