mirror of
https://github.com/HMCL-dev/HMCL.git
synced 2024-12-27 07:10:41 +08:00
Merge pull request #1 from huanghongxun/javafx
Fixed finding asset objects. Closes #205
This commit is contained in:
commit
026986c956
@ -165,7 +165,7 @@ open class DefaultGameRepository(var baseDirectory: File): GameRepository {
|
||||
@Throws(IOException::class)
|
||||
override fun getAssetObject(version: String, assetId: String, name: String): File {
|
||||
try {
|
||||
return getAssetObject(version, assetId, getAssetIndex(version, assetId).objects["name"]!!)
|
||||
return getAssetObject(version, assetId, getAssetIndex(version, assetId).objects[name]!!)
|
||||
} catch (e: Exception) {
|
||||
throw IOException("Asset index file malformed", e)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user