From faadba9341743843c999057e5413b8aedbd49e3f Mon Sep 17 00:00:00 2001 From: hannibal2 <24389977+hannibal002@users.noreply.github.com> Date: Mon, 26 Aug 2024 13:29:55 +0200 Subject: Fix: Fossil Solver texture pack (#2409) Co-authored-by: hannibal2 <24389977+hannibal00212@users.noreply.github.com> --- .../mining/fossilexcavator/solver/FossilSolverDisplay.kt | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'src/main') diff --git a/src/main/java/at/hannibal2/skyhanni/features/mining/fossilexcavator/solver/FossilSolverDisplay.kt b/src/main/java/at/hannibal2/skyhanni/features/mining/fossilexcavator/solver/FossilSolverDisplay.kt index ababbf3e1..82fc73030 100644 --- a/src/main/java/at/hannibal2/skyhanni/features/mining/fossilexcavator/solver/FossilSolverDisplay.kt +++ b/src/main/java/at/hannibal2/skyhanni/features/mining/fossilexcavator/solver/FossilSolverDisplay.kt @@ -12,6 +12,7 @@ import at.hannibal2.skyhanni.events.LorenzWorldChangeEvent import at.hannibal2.skyhanni.events.RenderInventoryItemTipEvent import at.hannibal2.skyhanni.features.mining.fossilexcavator.FossilExcavatorAPI import at.hannibal2.skyhanni.skyhannimodule.SkyHanniModule +import at.hannibal2.skyhanni.utils.ColorUtils.addAlpha import at.hannibal2.skyhanni.utils.InventoryUtils import at.hannibal2.skyhanni.utils.ItemUtils.getLore import at.hannibal2.skyhanni.utils.LorenzColor @@ -34,11 +35,11 @@ object FossilSolverDisplay { private val patternGroup = RepoPattern.group("mining.fossilexcavator") private val chargesRemainingPattern by patternGroup.pattern( "chargesremaining", - "Chisel Charges Remaining: (?\\d+)" + "Chisel Charges Remaining: (?\\d+)", ) private val fossilProgressPattern by patternGroup.pattern( "fossilprogress", - "Fossil Excavation Progress: (?[\\d.]+%)" + "Fossil Excavation Progress: (?[\\d.]+%)", ) private val inExcavatorMenu get() = FossilExcavatorAPI.inExcavatorMenu @@ -156,14 +157,14 @@ object FossilSolverDisplay { } @SubscribeEvent - fun onBackgroundDrawn(event: GuiContainerEvent.BackgroundDrawnEvent) { + fun onBackgroundDrawn(event: GuiContainerEvent.ForegroundDrawnEvent) { if (!isEnabled()) return if (inExcavatorMenu) return if (slotToClick == null) return for (slot in InventoryUtils.getItemsInOpenChest()) { if (slot.slotIndex == slotToClick) { - slot highlight LorenzColor.GREEN + slot highlight LorenzColor.GREEN.toColor().addAlpha(90) } } } -- cgit