diff options
author | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2023-04-17 23:08:50 +0200 |
---|---|---|
committer | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2023-04-17 23:08:50 +0200 |
commit | a1e0e192ba5c7e12bf2edbfadefe286d7503f188 (patch) | |
tree | 5d1ad0a75706857d58eb7e61e68bb58ca902e8a0 /src/main/java/at/hannibal2/skyhanni/features/minion | |
parent | 9991622e4407d05cc140d6f30ff55c073cbffaa8 (diff) | |
download | skyhanni-a1e0e192ba5c7e12bf2edbfadefe286d7503f188.tar.gz skyhanni-a1e0e192ba5c7e12bf2edbfadefe286d7503f188.tar.bz2 skyhanni-a1e0e192ba5c7e12bf2edbfadefe286d7503f188.zip |
to Pattern
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni/features/minion')
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/features/minion/MinionFeatures.kt | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/features/minion/MinionFeatures.kt b/src/main/java/at/hannibal2/skyhanni/features/minion/MinionFeatures.kt index e17e54263..d04372b32 100644 --- a/src/main/java/at/hannibal2/skyhanni/features/minion/MinionFeatures.kt +++ b/src/main/java/at/hannibal2/skyhanni/features/minion/MinionFeatures.kt @@ -27,7 +27,6 @@ import net.minecraftforge.fml.common.gameevent.InputEvent import net.minecraftforge.fml.common.gameevent.TickEvent import org.lwjgl.input.Mouse import java.awt.Color -import java.util.regex.Pattern class MinionFeatures { private val config get() = SkyHanniMod.feature.minions @@ -40,7 +39,7 @@ class MinionFeatures { private var lastMinionPickedUp = 0L private val minions = mutableMapOf<LorenzVec, MinionData>() private var coinsPerDay = "" - private val minionUpgradePattern = Pattern.compile("§aYou have upgraded your Minion to Tier (.*)") + private val minionUpgradePattern = "§aYou have upgraded your Minion to Tier (.*)".toPattern() @SubscribeEvent fun onConfigLoad(event: ConfigLoadEvent) { |