diff --git a/source/meta/data/scripts/FunkinLua.hx b/source/meta/data/scripts/FunkinLua.hx index 2ff44b41..0a7b5d36 100644 --- a/source/meta/data/scripts/FunkinLua.hx +++ b/source/meta/data/scripts/FunkinLua.hx @@ -2332,12 +2332,15 @@ class FunkinLua { }); #end - Lua_helper.add_callback(lua, "debugPrint", function(text1:Dynamic = ''2:Dynamic = ''3:Dynamic = ''4:Dynamic = ''5:Dynamic = '') { - for (i in [text12345]) - if (i == null) - i = ''; + Lua_helper.add_callback(lua, "debugPrint", function(text1:Dynamic = '', text2:Dynamic = '', text3:Dynamic = '', text4:Dynamic = '', text5:Dynamic = ''):Void + { + if (text1 == null) text1 = ''; + if (text2 == null) text2 = ''; + if (text3 == null) text3 = ''; + if (text4 == null) text4 = ''; + if (text5 == null) text5 = ''; - luaTrace('' + text1 + text2 + text3 + text4 + text5, true, false); + luaTrace(text1 + text2 + text3 + text4 + text5, true, false); }); Lua_helper.add_callback(lua, "close", function() {