aboutsummaryrefslogtreecommitdiff
path: root/src/main
diff options
context:
space:
mode:
authorhannibal2 <24389977+hannibal00212@users.noreply.github.com>2023-11-15 14:17:24 +0100
committerhannibal2 <24389977+hannibal00212@users.noreply.github.com>2023-11-15 14:17:24 +0100
commitb744133f7c4b56a02c774caf02cea99cc1c580cc (patch)
treec1fdfa539e49d40d44333852d438fb544207eb71 /src/main
parent893b98ebd6269fd8c23b882cdab02147457f4bee (diff)
downloadskyhanni-b744133f7c4b56a02c774caf02cea99cc1c580cc.tar.gz
skyhanni-b744133f7c4b56a02c774caf02cea99cc1c580cc.tar.bz2
skyhanni-b744133f7c4b56a02c774caf02cea99cc1c580cc.zip
more modern item price usage
Diffstat (limited to 'src/main')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/features/garden/AnitaMedalProfit.kt3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/features/garden/AnitaMedalProfit.kt b/src/main/java/at/hannibal2/skyhanni/features/garden/AnitaMedalProfit.kt
index 79e15eed8..1d84eae92 100644
--- a/src/main/java/at/hannibal2/skyhanni/features/garden/AnitaMedalProfit.kt
+++ b/src/main/java/at/hannibal2/skyhanni/features/garden/AnitaMedalProfit.kt
@@ -109,8 +109,7 @@ class AnitaMedalProfit {
val bronze = medal.factorBronze * amount
bronze * jacobTicketPrice
} else {
- val internalName = NEUItems.getRawInternalName(name)
- NEUItems.getPrice(internalName) * amount
+ NEUInternalName.fromItemName(name).getPrice() * amount
}
}
return otherItemsPrice