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/data/SendTitleHelper.kt | |
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/data/SendTitleHelper.kt')
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/data/SendTitleHelper.kt | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/data/SendTitleHelper.kt b/src/main/java/at/hannibal2/skyhanni/data/SendTitleHelper.kt index f0abb1427..ec7f0b5ae 100644 --- a/src/main/java/at/hannibal2/skyhanni/data/SendTitleHelper.kt +++ b/src/main/java/at/hannibal2/skyhanni/data/SendTitleHelper.kt @@ -1,10 +1,10 @@ package at.hannibal2.skyhanni.data import at.hannibal2.skyhanni.config.core.util.render.TextRenderUtils +import at.hannibal2.skyhanni.events.GuiRenderEvent import net.minecraft.client.Minecraft import net.minecraft.client.gui.ScaledResolution import net.minecraft.client.renderer.GlStateManager -import net.minecraftforge.client.event.RenderGameOverlayEvent import net.minecraftforge.fml.common.eventhandler.SubscribeEvent class SendTitleHelper { @@ -20,9 +20,7 @@ class SendTitleHelper { } @SubscribeEvent - fun onRenderOverlay(event: RenderGameOverlayEvent.Post) { - if (event.type != RenderGameOverlayEvent.ElementType.ALL) return - + fun onRenderOverlay(event: GuiRenderEvent.GameOverlayRenderEvent) { if (System.currentTimeMillis() > endTime) return val scaledResolution = ScaledResolution(Minecraft.getMinecraft()) |