Skip to content

Commit

Permalink
fix deprecations
Browse files Browse the repository at this point in the history
  • Loading branch information
wagyourtail committed Jun 19, 2024
1 parent b3e5021 commit e909fb4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ abstract class FabricLikeMinecraftTransformer(
}

val json = InputStreamReader(
fabricJson.files(fabricJson.dependencies.last())
fabricJson.getFiles(fabricJson.dependencies.last(), "json")
.last()
.inputStream()
).use { reader ->
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ abstract class ForgeLikeMinecraftTransformer(
private val actualSideMarker by lazy {
if (forge.dependencies.isEmpty()) return@lazy null // pre 1.3 - see below
val forgeUniversal = forge.dependencies.last()
val forgeJar = forge.files(forgeUniversal).first { it.extension == "zip" || it.extension == "jar" }
val forgeJar = forge.getFiles(forgeUniversal) { it.extension == "zip" || it.extension == "jar" }.singleFile

val type = forgeJar.toPath().readZipContents().map {
it.substringBefore(".class") to sideMarkers[it.substringBefore(".class")]
Expand Down

0 comments on commit e909fb4

Please sign in to comment.