aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/at
diff options
context:
space:
mode:
authorThunderblade73 <85900443+Thunderblade73@users.noreply.github.com>2024-01-09 20:36:48 +0100
committerGitHub <noreply@github.com>2024-01-09 20:36:48 +0100
commit070f5f5b99d5a64a4fc706a41aa0be61b7c81677 (patch)
treea5818c99701a9f0885f91f9cd1ee67de5b89513b /src/main/java/at
parent28637e9a62d151c3b4c4f5c68b23608a32fe7c5f (diff)
downloadskyhanni-070f5f5b99d5a64a4fc706a41aa0be61b7c81677.tar.gz
skyhanni-070f5f5b99d5a64a4fc706a41aa0be61b7c81677.tar.bz2
skyhanni-070f5f5b99d5a64a4fc706a41aa0be61b7c81677.zip
Title rendering layering fix (#897)
Fixed titles not showing above other SkyHanni GUI elements all the time. #897
Diffstat (limited to 'src/main/java/at')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/data/TitleManager.kt3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/data/TitleManager.kt b/src/main/java/at/hannibal2/skyhanni/data/TitleManager.kt
index 5b8bbd2b8..3de2298a6 100644
--- a/src/main/java/at/hannibal2/skyhanni/data/TitleManager.kt
+++ b/src/main/java/at/hannibal2/skyhanni/data/TitleManager.kt
@@ -8,6 +8,7 @@ import io.github.moulberry.moulconfig.internal.TextRenderUtils
import net.minecraft.client.Minecraft
import net.minecraft.client.gui.ScaledResolution
import net.minecraft.client.renderer.GlStateManager
+import net.minecraftforge.fml.common.eventhandler.EventPriority
import net.minecraftforge.fml.common.eventhandler.SubscribeEvent
import kotlin.time.Duration
import kotlin.time.Duration.Companion.seconds
@@ -47,7 +48,7 @@ class TitleManager {
endTime = SimpleTimeMark.farPast()
}
- @SubscribeEvent
+ @SubscribeEvent(priority = EventPriority.LOWEST)
fun onRenderOverlay(event: GuiRenderEvent.GuiOverlayRenderEvent) {
if (endTime.isInPast()) return