diff options
author | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2023-02-05 18:36:42 +0100 |
---|---|---|
committer | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2023-02-05 18:36:42 +0100 |
commit | fc18fe2c36de492ca045fc701433e4bdc8054e6f (patch) | |
tree | ad27024d5315ef679bbcb7b276a8d6dcbb153cd9 /src/main/java/at/hannibal2/skyhanni | |
parent | 401ff303eefa1c1700128e3afe6013e0cd103a76 (diff) | |
download | skyhanni-fc18fe2c36de492ca045fc701433e4bdc8054e6f.tar.gz skyhanni-fc18fe2c36de492ca045fc701433e4bdc8054e6f.tar.bz2 skyhanni-fc18fe2c36de492ca045fc701433e4bdc8054e6f.zip |
Code cleanup.
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni')
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/features/minion/MinionCraftHelper.kt | 6 |
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> { |