aboutsummaryrefslogtreecommitdiff
path: root/src/main/kotlin/features/macros/ComboProcessor.kt
diff options
context:
space:
mode:
authorLinnea Gräf <nea@nea.moe>2025-07-17 11:52:28 +0200
committerLinnea Gräf <nea@nea.moe>2025-07-17 11:52:28 +0200
commit25f0e7fd62db22036969120843165f4759530b8f (patch)
tree262ed44e0e68464ba99f7650fed8df102c982fe5 /src/main/kotlin/features/macros/ComboProcessor.kt
parent13d64762bbf110fbc52719fb9d93490648199dd2 (diff)
downloadFirmament-25f0e7fd62db22036969120843165f4759530b8f.tar.gz
Firmament-25f0e7fd62db22036969120843165f4759530b8f.tar.bz2
Firmament-25f0e7fd62db22036969120843165f4759530b8f.zip
feat: Launch on 1.21.7
Diffstat (limited to 'src/main/kotlin/features/macros/ComboProcessor.kt')
-rw-r--r--src/main/kotlin/features/macros/ComboProcessor.kt11
1 files changed, 5 insertions, 6 deletions
diff --git a/src/main/kotlin/features/macros/ComboProcessor.kt b/src/main/kotlin/features/macros/ComboProcessor.kt
index 5c5ac0e..1f77ff6 100644
--- a/src/main/kotlin/features/macros/ComboProcessor.kt
+++ b/src/main/kotlin/features/macros/ComboProcessor.kt
@@ -56,12 +56,11 @@ object ComboProcessor {
fun onRender(event: HudRenderEvent) {
if (!isInputting) return
if (!event.isRenderingHud) return
- event.context.matrices.push()
+ event.context.matrices.pushMatrix()
val width = 120
event.context.matrices.translate(
(MC.window.scaledWidth - width) / 2F,
- (MC.window.scaledHeight) / 2F + 8,
- 0F
+ (MC.window.scaledHeight) / 2F + 8
)
val breadCrumbText = breadCrumbs.joinToString(" > ")
event.context.drawText(
@@ -72,7 +71,7 @@ object ComboProcessor {
-1,
true
)
- event.context.matrices.translate(0F, MC.font.fontHeight + 2F, 0F)
+ event.context.matrices.translate(0F, MC.font.fontHeight + 2F)
for ((key, value) in activeTrie.nodes) {
event.context.drawText(
MC.font,
@@ -82,9 +81,9 @@ object ComboProcessor {
-1,
true
)
- event.context.matrices.translate(0F, MC.font.fontHeight + 1F, 0F)
+ event.context.matrices.translate(0F, MC.font.fontHeight + 1F)
}
- event.context.matrices.pop()
+ event.context.matrices.popMatrix()
}
@Subscribe