diff options
author | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2023-12-21 00:14:07 +0100 |
---|---|---|
committer | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2023-12-21 00:14:07 +0100 |
commit | aecd1898ddb6db4c1727e98b9b0d7d974c269f7a (patch) | |
tree | 5a1cf896310126ff1ddac094832a6704fdc616fc /src/main/java/at/hannibal2/skyhanni/features | |
parent | 1279308d07da76fba65a2a0508bcc9b115a0ee81 (diff) | |
download | skyhanni-aecd1898ddb6db4c1727e98b9b0d7d974c269f7a.tar.gz skyhanni-aecd1898ddb6db4c1727e98b9b0d7d974c269f7a.tar.bz2 skyhanni-aecd1898ddb6db4c1727e98b9b0d7d974c269f7a.zip |
Fixed medal icon in jacob inventory.
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni/features')
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/features/garden/contest/JacobFarmingContestsInventory.kt | 6 |
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) { |