Skip to content

Commit

Permalink
Fixed medal icon in jacob inventory.
Browse files Browse the repository at this point in the history
  • Loading branch information
hannibal002 committed Dec 20, 2023
1 parent 1279308 commit aecd189
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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) {
Expand Down

0 comments on commit aecd189

Please sign in to comment.