aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorhannibal2 <24389977+hannibal00212@users.noreply.github.com>2023-12-21 00:14:07 +0100
committerhannibal2 <24389977+hannibal00212@users.noreply.github.com>2023-12-21 00:14:07 +0100
commitaecd1898ddb6db4c1727e98b9b0d7d974c269f7a (patch)
tree5a1cf896310126ff1ddac094832a6704fdc616fc
parent1279308d07da76fba65a2a0508bcc9b115a0ee81 (diff)
downloadskyhanni-aecd1898ddb6db4c1727e98b9b0d7d974c269f7a.tar.gz
skyhanni-aecd1898ddb6db4c1727e98b9b0d7d974c269f7a.tar.bz2
skyhanni-aecd1898ddb6db4c1727e98b9b0d7d974c269f7a.zip
Fixed medal icon in jacob inventory.
-rw-r--r--src/main/java/at/hannibal2/skyhanni/features/garden/contest/JacobFarmingContestsInventory.kt6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/features/garden/contest/JacobFarmingContestsInventory.kt b/src/main/java/at/hannibal2/skyhanni/features/garden/contest/JacobFarmingContestsInventory.kt
index dfc83e404..f45e909ff 100644
--- a/src/main/java/at/hannibal2/skyhanni/features/garden/contest/JacobFarmingContestsInventory.kt
+++ b/src/main/java/at/hannibal2/skyhanni/features/garden/contest/JacobFarmingContestsInventory.kt
@@ -16,6 +16,7 @@ import at.hannibal2.skyhanni.utils.RenderUtils.drawSlotText
import at.hannibal2.skyhanni.utils.RenderUtils.highlight
import at.hannibal2.skyhanni.utils.StringUtils.matchMatcher
import at.hannibal2.skyhanni.utils.StringUtils.removeColor
+import at.hannibal2.skyhanni.utils.repopatterns.RepoPattern
import net.minecraft.client.gui.inventory.GuiChest
import net.minecraft.inventory.ContainerChest
import net.minecraftforge.fml.common.eventhandler.SubscribeEvent
@@ -31,7 +32,10 @@ class JacobFarmingContestsInventory {
// Render the contests a tick delayed to feel smoother
private var hideEverything = true
- private val medalPattern = "§7§7You placed in the (?<medal>.*)".toPattern()
+ private val medalPattern by RepoPattern.pattern(
+ "garden.jacob.contests.inventory.medal",
+ "§7§7You placed in the (?<medal>.*) §7bracket!"
+ )
@SubscribeEvent
fun onInventoryClose(event: InventoryCloseEvent) {