Skip to content

Commit

Permalink
Update FunkinLua.hx
Browse files Browse the repository at this point in the history
  • Loading branch information
ShadowMario committed Jan 13, 2025
1 parent f331dc9 commit cfa9ed4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions source/psychlua/FunkinLua.hx
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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)
Expand Down

2 comments on commit cfa9ed4

@megalives717
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

?

@crowplexus
Copy link
Contributor

@crowplexus crowplexus commented on cfa9ed4 Jan 13, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

?

the type fo those variables was wrong and would cause issues when utlising these functions since the game would assume those are FlxSprites when they can really be any type of object that extends FlxBasic

Please sign in to comment.