mirror of
https://github.com/HMCL-dev/HMCL.git
synced 2025-01-30 14:39:56 +08:00
Fixed finding asset objects. Closes #205
This commit is contained in:
parent
5f7f885d99
commit
621562a17e
@ -165,7 +165,7 @@ open class DefaultGameRepository(var baseDirectory: File): GameRepository {
|
|||||||
@Throws(IOException::class)
|
@Throws(IOException::class)
|
||||||
override fun getAssetObject(version: String, assetId: String, name: String): File {
|
override fun getAssetObject(version: String, assetId: String, name: String): File {
|
||||||
try {
|
try {
|
||||||
return getAssetObject(version, assetId, getAssetIndex(version, assetId).objects["name"]!!)
|
return getAssetObject(version, assetId, getAssetIndex(version, assetId).objects[name]!!)
|
||||||
} catch (e: Exception) {
|
} catch (e: Exception) {
|
||||||
throw IOException("Asset index file malformed", e)
|
throw IOException("Asset index file malformed", e)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user