Use normalized item ID for osb lookups in examine plugin (#344)
This commit is contained in:
@@ -349,7 +349,7 @@ public class ExaminePlugin extends Plugin
|
|||||||
OSBGrandExchangeResult osbresult = new OSBGrandExchangeResult();
|
OSBGrandExchangeResult osbresult = new OSBGrandExchangeResult();
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
osbresult = CLIENT.lookupItem(itemComposition.getId());
|
osbresult = CLIENT.lookupItem(id);
|
||||||
}
|
}
|
||||||
catch (IOException e)
|
catch (IOException e)
|
||||||
{
|
{
|
||||||
@@ -359,11 +359,16 @@ public class ExaminePlugin extends Plugin
|
|||||||
.append(ChatColorType.NORMAL)
|
.append(ChatColorType.NORMAL)
|
||||||
.append(" GE ")
|
.append(" GE ")
|
||||||
.append(ChatColorType.HIGHLIGHT)
|
.append(ChatColorType.HIGHLIGHT)
|
||||||
.append(StackFormatter.formatNumber(gePrice * quantity))
|
.append(StackFormatter.formatNumber(gePrice * quantity));
|
||||||
.append(ChatColorType.NORMAL)
|
|
||||||
.append(" OSB ")
|
if (osbresult != null)
|
||||||
.append(ChatColorType.HIGHLIGHT)
|
{
|
||||||
.append(StackFormatter.formatNumber(osbresult.getOverall_average() * quantity));
|
message
|
||||||
|
.append(ChatColorType.NORMAL)
|
||||||
|
.append(" OSB ")
|
||||||
|
.append(ChatColorType.HIGHLIGHT)
|
||||||
|
.append(StackFormatter.formatNumber(osbresult.getOverall_average() * quantity));
|
||||||
|
}
|
||||||
|
|
||||||
if (quantity > 1)
|
if (quantity > 1)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user