diff options
author | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2023-02-26 15:47:46 +0100 |
---|---|---|
committer | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2023-02-26 15:47:46 +0100 |
commit | a94cdd4331f2d7aa275745c0e44d16bbe69492a1 (patch) | |
tree | 616e1311d03856bc9cb67077452dfc8e85fc74a5 /src/main/java/at/hannibal2/skyhanni/features/garden | |
parent | c15c3d2db212f2fb73e6063aa5ff3cc2b5a7a4f5 (diff) | |
download | skyhanni-a94cdd4331f2d7aa275745c0e44d16bbe69492a1.tar.gz skyhanni-a94cdd4331f2d7aa275745c0e44d16bbe69492a1.tar.bz2 skyhanni-a94cdd4331f2d7aa275745c0e44d16bbe69492a1.zip |
Using GuiRenderEvent.GameOverlayRenderEvent instead of RenderGameOverlayEvent.
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni/features/garden')
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/features/garden/GardenVisitorTimer.kt | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/features/garden/GardenVisitorTimer.kt b/src/main/java/at/hannibal2/skyhanni/features/garden/GardenVisitorTimer.kt index 3794e50d1..407fdb6a9 100644 --- a/src/main/java/at/hannibal2/skyhanni/features/garden/GardenVisitorTimer.kt +++ b/src/main/java/at/hannibal2/skyhanni/features/garden/GardenVisitorTimer.kt @@ -2,11 +2,11 @@ package at.hannibal2.skyhanni.features.garden import at.hannibal2.skyhanni.SkyHanniMod import at.hannibal2.skyhanni.data.IslandType +import at.hannibal2.skyhanni.events.GuiRenderEvent import at.hannibal2.skyhanni.events.TabListUpdateEvent import at.hannibal2.skyhanni.utils.LorenzUtils import at.hannibal2.skyhanni.utils.RenderUtils.renderString import at.hannibal2.skyhanni.utils.TimeUtils -import net.minecraftforge.client.event.RenderGameOverlayEvent import net.minecraftforge.fml.common.eventhandler.SubscribeEvent import java.util.regex.Pattern @@ -58,8 +58,7 @@ class GardenVisitorTimer { } @SubscribeEvent - fun onRenderOverlay(event: RenderGameOverlayEvent.Post) { - if (event.type != RenderGameOverlayEvent.ElementType.ALL) return + fun onRenderOverlay(event: GuiRenderEvent.GameOverlayRenderEvent) { if (!isEnabled()) return SkyHanniMod.feature.garden.visitorTimerPos.renderString(render) |