aboutsummaryrefslogtreecommitdiff
path: root/src/main/kotlin/gui/hud/MoulConfigHud.kt
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/kotlin/gui/hud/MoulConfigHud.kt')
-rw-r--r--src/main/kotlin/gui/hud/MoulConfigHud.kt4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main/kotlin/gui/hud/MoulConfigHud.kt b/src/main/kotlin/gui/hud/MoulConfigHud.kt
index e77d9af..e99b069 100644
--- a/src/main/kotlin/gui/hud/MoulConfigHud.kt
+++ b/src/main/kotlin/gui/hud/MoulConfigHud.kt
@@ -37,7 +37,7 @@ abstract class MoulConfigHud(
init {
require(name.matches("^[a-z_/]+$".toRegex()))
- HudRenderEvent.subscribe {
+ HudRenderEvent.subscribe("MoulConfigHud:render") {
if (!shouldRender()) return@subscribe
val renderContext = componentWrapper.createContext(it.context)
if (fragment == null)
@@ -50,7 +50,7 @@ abstract class MoulConfigHud(
fragment!!.root.render(renderContextTranslated)
it.context.matrices.pop()
}
- FinalizeResourceManagerEvent.subscribe {
+ FinalizeResourceManagerEvent.subscribe("MoulConfigHud:finalizeResourceManager") {
MC.resourceManager.registerReloader(object : SynchronousResourceReloader {
override fun reload(manager: ResourceManager?) {
fragment = null