aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/at/hannibal2/skyhanni
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/features/minion/MinionCraftHelper.kt6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/features/minion/MinionCraftHelper.kt b/src/main/java/at/hannibal2/skyhanni/features/minion/MinionCraftHelper.kt
index 3181141fd..898c7f34c 100644
--- a/src/main/java/at/hannibal2/skyhanni/features/minion/MinionCraftHelper.kt
+++ b/src/main/java/at/hannibal2/skyhanni/features/minion/MinionCraftHelper.kt
@@ -130,11 +130,9 @@ class MinionCraftHelper {
}
private fun String.addOneToId(): String {
- val split = split("_")
- val lastText = split.last()
+ val lastText = split("_").last()
val next = lastText.toInt() + 1
- val result = replace(lastText, "" + next)
- return result
+ return replace(lastText, "" + next)
}
private fun getMultiplier(rawId: String): Pair<String, Int> {