Welp added some lines I shouldn't have

This commit is contained in:
Yair Morgenstern
2019-12-27 00:20:02 +02:00
parent 80be3c276e
commit 9d9700b119

View File

@ -38,8 +38,6 @@ class Ruleset {
fun <T> getFromJson(tClass: Class<T>, filePath:String): T {
val file = Gdx.files.internal(filePath)
if(!file.exists()) return tClass Array<>().first()
val jsonText = Gdx.files.internal(filePath).readString(Charsets.UTF_8.name())
return Json().apply { ignoreUnknownFields = true }.fromJson(tClass, jsonText)
}