From 053984cb5504a27566e1061d85c0ac83abbd36f9 Mon Sep 17 00:00:00 2001 From: Vortex <73261680+Vortex2Oblivion@users.noreply.github.com> Date: Fri, 15 Dec 2023 10:14:11 -0500 Subject: [PATCH] Update ModchartUtilities.hx --- source/modding/ModchartUtilities.hx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/source/modding/ModchartUtilities.hx b/source/modding/ModchartUtilities.hx index 4552841f3c..6400f164fe 100644 --- a/source/modding/ModchartUtilities.hx +++ b/source/modding/ModchartUtilities.hx @@ -2782,9 +2782,12 @@ class ModchartUtilities { setLuaFunction("updateRating", function() { PlayState.instance.updateRating(); + }); + + setLuaFunction("getOption", function(saveStr:String) { + return Options.getData(saveStr); }); - #if MODCHARTING_TOOLS if (PlayState.SONG.modchartingTools){ setLuaFunction('startMod', function(name:String, modClass:String, type:String = '', pf:Int = -1){