Skip to content
This repository has been archived by the owner on Oct 7, 2022. It is now read-only.

Commit

Permalink
Fix talisman tooltip.
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael committed Jan 23, 2020
1 parent ccc87a2 commit 28d9e75
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ public boolean supports(GameEvent event) {
}

private void displayItemTooltip(Item item) {
if (item == null || !item.hasPrice()) {
if (item == null || !item.exists()) {
return;
}

Expand All @@ -130,6 +130,10 @@ private Map<Element, int[]> createBaseItemTooltip(Item item) {
}

private void addPoeNinjaPrice(Item item, Map<Element, int[]> elements) {
if (item.getMeanPrice() == null) {
elements.put(new Label("No poe.ninja price available"), new int[]{1, elements.size() - 1});
return;
}
elements.put(new Price(item), new int[]{1, elements.size() - 1});
if (item.getMeanPrice().getReason() != null) {
elements.put(new Label("Reason: " + item.getMeanPrice().getReason()), new int[]{1, elements.size() - 1});
Expand Down

0 comments on commit 28d9e75

Please sign in to comment.