diff options
author | nea <romangraef@gmail.com> | 2022-08-27 01:38:49 +0200 |
---|---|---|
committer | nea <romangraef@gmail.com> | 2022-08-27 01:38:49 +0200 |
commit | 973c13e84f8e091a6a920779103d96559dcd32a8 (patch) | |
tree | 95741faaa85509216a3a5130a3d8cd48b1b415fd /src/main/kotlin/moe/nea/notenoughupdates/hud | |
parent | 4c7bd601c4df4d03536e97e18e4b88d858330ad9 (diff) | |
download | Firmament-973c13e84f8e091a6a920779103d96559dcd32a8.tar.gz Firmament-973c13e84f8e091a6a920779103d96559dcd32a8.tar.bz2 Firmament-973c13e84f8e091a6a920779103d96559dcd32a8.zip |
Switch to yarn mappings
Diffstat (limited to 'src/main/kotlin/moe/nea/notenoughupdates/hud')
-rw-r--r-- | src/main/kotlin/moe/nea/notenoughupdates/hud/RepoDownloadProgress.kt | 4 |
1 files changed, 2 insertions, 2 deletions
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) |