From 5c9e4b50dcc148d5c91404fc742e85c6fa5c1c6b Mon Sep 17 00:00:00 2001 From: ShadowMario <44785097+ShadowMario@users.noreply.github.com> Date: Fri, 27 Sep 2024 21:20:16 -0300 Subject: [PATCH] Update ModsMenuState.hx --- source/states/ModsMenuState.hx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/source/states/ModsMenuState.hx b/source/states/ModsMenuState.hx index 47be4c0e61a..b2d2162bb30 100644 --- a/source/states/ModsMenuState.hx +++ b/source/states/ModsMenuState.hx @@ -818,11 +818,10 @@ class ModItem extends FlxSpriteGroup var path:String = Paths.mods('$folder/data/settings.json'); if(FileSystem.exists(path)) { - var data:String = File.getContent(path); try { //trace('trying to load settings: $folder'); - settings = tjson.TJSON.parse(data); + settings = tjson.TJSON.parse(File.getContent(path)); } catch(e:Dynamic) {