aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/at
diff options
context:
space:
mode:
authorhannibal2 <24389977+hannibal00212@users.noreply.github.com>2023-02-26 15:48:24 +0100
committerhannibal2 <24389977+hannibal00212@users.noreply.github.com>2023-02-26 15:48:24 +0100
commitde34b54fee489e4ac9e950a232825c162732c9b6 (patch)
tree8bd25e94d92784e94df49eb272d58a5fb553e663 /src/main/java/at
parenta94cdd4331f2d7aa275745c0e44d16bbe69492a1 (diff)
downloadskyhanni-de34b54fee489e4ac9e950a232825c162732c9b6.tar.gz
skyhanni-de34b54fee489e4ac9e950a232825c162732c9b6.tar.bz2
skyhanni-de34b54fee489e4ac9e950a232825c162732c9b6.zip
Using GuiRenderEvent.GameOverlayRenderEvent instead of RenderGameOverlayEvent.
Diffstat (limited to 'src/main/java/at')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/features/dungeon/DungeonMilestonesDisplay.kt5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/features/dungeon/DungeonMilestonesDisplay.kt b/src/main/java/at/hannibal2/skyhanni/features/dungeon/DungeonMilestonesDisplay.kt
index d90394e1a..fa62f39a2 100644
--- a/src/main/java/at/hannibal2/skyhanni/features/dungeon/DungeonMilestonesDisplay.kt
+++ b/src/main/java/at/hannibal2/skyhanni/features/dungeon/DungeonMilestonesDisplay.kt
@@ -2,11 +2,11 @@ package at.hannibal2.skyhanni.features.dungeon
import at.hannibal2.skyhanni.SkyHanniMod
import at.hannibal2.skyhanni.events.DungeonStartEvent
+import at.hannibal2.skyhanni.events.GuiRenderEvent
import at.hannibal2.skyhanni.events.LorenzChatEvent
import at.hannibal2.skyhanni.utils.LorenzUtils
import at.hannibal2.skyhanni.utils.RenderUtils.renderString
import at.hannibal2.skyhanni.utils.StringUtils.matchRegex
-import net.minecraftforge.client.event.RenderGameOverlayEvent
import net.minecraftforge.event.world.WorldEvent
import net.minecraftforge.fml.common.eventhandler.SubscribeEvent
import kotlin.concurrent.fixedRateTimer
@@ -84,8 +84,7 @@ class DungeonMilestonesDisplay {
}
@SubscribeEvent
- fun onRenderOverlay(event: RenderGameOverlayEvent.Post) {
- if (event.type != RenderGameOverlayEvent.ElementType.ALL) return
+ fun onRenderOverlay(event: GuiRenderEvent.GameOverlayRenderEvent) {
if (!isEnabled()) return
SkyHanniMod.feature.dungeon.showMileStonesDisplayPos.renderString(color + display)