From 973c13e84f8e091a6a920779103d96559dcd32a8 Mon Sep 17 00:00:00 2001 From: nea Date: Sat, 27 Aug 2022 01:38:49 +0200 Subject: Switch to yarn mappings --- src/main/kotlin/moe/nea/notenoughupdates/hud/RepoDownloadProgress.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/main/kotlin/moe/nea/notenoughupdates/hud/RepoDownloadProgress.kt') diff --git a/src/main/kotlin/moe/nea/notenoughupdates/hud/RepoDownloadProgress.kt b/src/main/kotlin/moe/nea/notenoughupdates/hud/RepoDownloadProgress.kt index 462f0bc..5ef6c5b 100644 --- a/src/main/kotlin/moe/nea/notenoughupdates/hud/RepoDownloadProgress.kt +++ b/src/main/kotlin/moe/nea/notenoughupdates/hud/RepoDownloadProgress.kt @@ -1,10 +1,10 @@ package moe.nea.notenoughupdates.hud -import com.mojang.blaze3d.vertex.PoseStack import io.github.cottonmc.cotton.gui.client.ScreenDrawing import io.github.cottonmc.cotton.gui.widget.WWidget import io.github.cottonmc.cotton.gui.widget.data.HorizontalAlignment import io.github.cottonmc.cotton.gui.widget.data.Insets +import net.minecraft.client.util.math.MatrixStack import kotlin.math.roundToInt import kotlin.math.sin @@ -31,7 +31,7 @@ class ProgressBar( } - override fun paint(matrices: PoseStack, x: Int, y: Int, mouseX: Int, mouseY: Int) { + override fun paint(matrices: MatrixStack, x: Int, y: Int, mouseX: Int, mouseY: Int) { ScreenDrawing.coloredRect(matrices, x, y, width, height, 0xFF808080.toInt()) val (l, prog) = synchronized(this) { label to (progress to total) -- cgit