Merge pull request #1 from huanghongxun/javafx

Fixed finding asset objects. Closes #205
This commit is contained in:
曾科特 2017-09-17 10:40:53 +08:00 committed by GitHub
commit 026986c956

View File

@ -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)
}