Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/main'
Browse files Browse the repository at this point in the history
  • Loading branch information
opZywl committed Jan 31, 2025
2 parents 313c53f + cfcd3d6 commit c33f110
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/main/java/net/ccbluex/liquidbounce/ui/font/Fonts.kt
Original file line number Diff line number Diff line change
Expand Up @@ -262,12 +262,12 @@ object Fonts : MinecraftInstance {
}

fun downloadFonts() {
val robotoZipFile = File(fontsDir, "roboto.zip")
if (!robotoZipFile.exists()) {
val outputFile = File(fontsDir, "outfit.zip")
if (!outputFile.exists()) {
LOGGER.info("Downloading roboto fonts...")
Downloader.downloadWholeFile("$CLIENT_CLOUD/fonts/Roboto.zip", robotoZipFile)
Downloader.downloadWholeFile("$CLIENT_CLOUD/fonts/Outfit.zip", outputFile)
LOGGER.info("Extract roboto fonts...")
robotoZipFile.extractZipTo(fontsDir)
outputFile.extractZipTo(fontsDir)
}

val fontZipFile = File(fontsDir, "font.zip")
Expand Down Expand Up @@ -334,4 +334,4 @@ object Fonts : MinecraftInstance {
private fun Font.asSimpleFontRenderer(): SimpleFontRenderer {
return SimpleFontRenderer.create(this) as SimpleFontRenderer
}
}
}

0 comments on commit c33f110

Please sign in to comment.