diff options
author | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2023-12-16 12:15:09 +0100 |
---|---|---|
committer | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2023-12-16 12:15:09 +0100 |
commit | bfd29908273cc714e9dd8cb8e2d8d164b3c9400e (patch) | |
tree | a9103f217e74c6db7c12d6de4df99c6bbb6f4e06 /src/main/java | |
parent | cdcc7b35e38ddb5e00d8a4d900c4cad77bd6e1f5 (diff) | |
download | skyhanni-bfd29908273cc714e9dd8cb8e2d8d164b3c9400e.tar.gz skyhanni-bfd29908273cc714e9dd8cb8e2d8d164b3c9400e.tar.bz2 skyhanni-bfd29908273cc714e9dd8cb8e2d8d164b3c9400e.zip |
code cleanup
Diffstat (limited to 'src/main/java')
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/features/garden/pests/SprayDisplay.kt | 2 | ||||
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/features/garden/pests/SprayFeatures.kt | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/features/garden/pests/SprayDisplay.kt b/src/main/java/at/hannibal2/skyhanni/features/garden/pests/SprayDisplay.kt index cfee8face..137db034e 100644 --- a/src/main/java/at/hannibal2/skyhanni/features/garden/pests/SprayDisplay.kt +++ b/src/main/java/at/hannibal2/skyhanni/features/garden/pests/SprayDisplay.kt @@ -14,8 +14,8 @@ import at.hannibal2.skyhanni.features.garden.GardenPlotAPI.plots import at.hannibal2.skyhanni.utils.LorenzUtils import at.hannibal2.skyhanni.utils.RenderUtils.renderString import at.hannibal2.skyhanni.utils.StringUtils -import at.hannibal2.skyhanni.utils.TimeUtils.timerColor import at.hannibal2.skyhanni.utils.TimeUtils.format +import at.hannibal2.skyhanni.utils.TimeUtils.timerColor import net.minecraftforge.fml.common.eventhandler.SubscribeEvent class SprayDisplay { diff --git a/src/main/java/at/hannibal2/skyhanni/features/garden/pests/SprayFeatures.kt b/src/main/java/at/hannibal2/skyhanni/features/garden/pests/SprayFeatures.kt index f3a21f6be..b5e317f30 100644 --- a/src/main/java/at/hannibal2/skyhanni/features/garden/pests/SprayFeatures.kt +++ b/src/main/java/at/hannibal2/skyhanni/features/garden/pests/SprayFeatures.kt @@ -24,7 +24,7 @@ class SprayFeatures { private var display: String? = null private var lastChangeTime = SimpleTimeMark.farPast() - private val pattern by RepoPattern.pattern( + private val changeMaterialPattern by RepoPattern.pattern( "garden.spray.material", "§a§lSPRAYONATOR! §r§7Your selected material is now §r§a(?<spray>.*)§r§7!" ) @@ -33,7 +33,7 @@ class SprayFeatures { fun onChat(event: LorenzChatEvent) { if (!config.pestWhenSelector) return - val type = pattern.matchMatcher(event.message) { + val type = changeMaterialPattern.matchMatcher(event.message) { val sprayName = group("spray") SprayType.getByName(sprayName) ?: run { ErrorManager.logErrorStateWithData( |