Skip to content
This repository was archived by the owner on Dec 30, 2022. It is now read-only.

Commit 40dafaa

Browse files
DeathsGunDeathsGun
authored andcommitted
Moved tr_tr.json
Signed-off-by: DeathsGun <deathsgun@protonmail.com>
1 parent b086f66 commit 40dafaa

File tree

2 files changed

+1
-2
lines changed
  • src/main

2 files changed

+1
-2
lines changed

src/main/kotlin/xyz/deathsgun/modmanager/config/Config.kt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@ import net.fabricmc.loader.api.FabricLoader
2525
import net.minecraft.text.Text
2626
import net.minecraft.text.TranslatableText
2727
import xyz.deathsgun.modmanager.api.mod.VersionType
28-
import java.io.FileNotFoundException
2928
import java.nio.charset.Charset
3029
import java.nio.file.Files
3130

@@ -44,7 +43,7 @@ data class Config(
4443
val data = Files.readString(file, Charset.forName("UTF-8"))
4544
Json.decodeFromString(data)
4645
} catch (e: Exception) {
47-
if (e !is FileNotFoundException) {
46+
if (e !is NoSuchFileException) {
4847
e.printStackTrace()
4948
}
5049
saveConfig(Config("modrinth", UpdateChannel.STABLE))
File renamed without changes.

0 commit comments

Comments
 (0)