itemprices plugin: fix noted items not showing ge

The ge price did not show up for noted items, this fixes that.
This commit is contained in:
Jeremy Plsek
2018-04-08 14:59:32 -04:00
committed by Adam
parent fed264989f
commit 7640156c86

View File

@@ -180,7 +180,13 @@ class ItemPricesOverlay extends Overlay
return StackFormatter.formatNumber(qty * 1000) + " gp";
}
final ItemComposition itemDef = itemManager.getItemComposition(id);
ItemComposition itemDef = itemManager.getItemComposition(id);
if (itemDef.getNote() != -1)
{
id = itemDef.getLinkedNoteId();
itemDef = itemManager.getItemComposition(id);
}
// Only check prices for things with store prices
if (itemDef.getPrice() <= 0)
{