aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/at/hannibal2
diff options
context:
space:
mode:
authorhannibal2 <24389977+hannibal00212@users.noreply.github.com>2023-02-05 18:36:42 +0100
committerhannibal2 <24389977+hannibal00212@users.noreply.github.com>2023-02-05 18:36:42 +0100
commitfc18fe2c36de492ca045fc701433e4bdc8054e6f (patch)
treead27024d5315ef679bbcb7b276a8d6dcbb153cd9 /src/main/java/at/hannibal2
parent401ff303eefa1c1700128e3afe6013e0cd103a76 (diff)
downloadskyhanni-fc18fe2c36de492ca045fc701433e4bdc8054e6f.tar.gz
skyhanni-fc18fe2c36de492ca045fc701433e4bdc8054e6f.tar.bz2
skyhanni-fc18fe2c36de492ca045fc701433e4bdc8054e6f.zip
Code cleanup.
Diffstat (limited to 'src/main/java/at/hannibal2')
-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> {