Skip to content

Commit

Permalink
微修正
Browse files Browse the repository at this point in the history
  • Loading branch information
MORIMORI0317 committed Feb 18, 2024
1 parent b5d0f7d commit 1774e11
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions generate/scripts/generator.main.kts
Original file line number Diff line number Diff line change
Expand Up @@ -434,9 +434,6 @@ fun loadResourceHolder(locationFile: ResourceLocationFile, mcClientRes: Boolean)
fun loadMcResourceHolder(locationFile: ResourceLocationFile): ResourceHolder? {
val mcFile = locationFile.mcResFile()

println(mcFile)
println(mcFile.canonicalFile)

if (!mcFile.exists() || mcFile.isDirectory) {
return null
}
Expand Down Expand Up @@ -779,16 +776,14 @@ data class ResourceLocationFile(val location: ResourceLocation, val extension: S
* パックディレクトリから相対的なファイルを取得
*/
fun packFile(): File {
val locationPath = location.path.replace("/", "\\")
return packNameSpaceFile(location.nameSpace, Path.of("${locationPath}.${extension}"))
return packNameSpaceFile(location.nameSpace, Path.of("${location.path}.${extension}"))
}

/**
* Minecraftクライアントリソースから相対的なファイルを取得
*/
fun mcResFile(): File {
val locationPath = location.path.replace("/", "\\")
return mcResSpaceFile(Path.of("${locationPath}.${extension}"))
return mcResSpaceFile(Path.of("${location.path}.${extension}"))
}

/**
Expand Down

0 comments on commit 1774e11

Please sign in to comment.