diff --git a/source/psychlua/FunkinLua.hx b/source/psychlua/FunkinLua.hx index 28e4231e2f8..0ea6c6dcf6e 100644 --- a/source/psychlua/FunkinLua.hx +++ b/source/psychlua/FunkinLua.hx @@ -425,7 +425,7 @@ class FunkinLua { //shitass stuff for epic coders like me B) *image of obama giving himself a medal* Lua_helper.add_callback(lua, "getObjectOrder", function(obj:String, ?group:String = null) { - var leObj:FlxSprite = LuaUtils.getObjectDirectly(obj); + var leObj:FlxBasic = LuaUtils.getObjectDirectly(obj); if(leObj != null) { if(group != null) @@ -454,7 +454,7 @@ class FunkinLua { return -1; }); Lua_helper.add_callback(lua, "setObjectOrder", function(obj:String, position:Int, ?group:String = null) { - var leObj:FlxSprite = LuaUtils.getObjectDirectly(obj); + var leObj:FlxBasic = LuaUtils.getObjectDirectly(obj); if(leObj != null) { if(group != null)