Skip to content

Commit

Permalink
updateHitbox should be working properly now
Browse files Browse the repository at this point in the history
  • Loading branch information
ShadowMario committed Oct 5, 2024
1 parent af15bac commit 0f993fe
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion source/psychlua/FunkinLua.hx
Original file line number Diff line number Diff line change
Expand Up @@ -1053,7 +1053,12 @@ class FunkinLua {
return;
}

var poop:FlxSprite = Reflect.getProperty(LuaUtils.getTargetInstance(), obj);
var split:Array<String> = obj.split('.');
var poop:FlxSprite = LuaUtils.getObjectDirectly(split[0]);
if(split.length > 1) {
poop = LuaUtils.getVarInArray(LuaUtils.getPropertyLoop(split), split[split.length-1]);
}

if(poop != null) {
poop.updateHitbox();
return;
Expand Down

0 comments on commit 0f993fe

Please sign in to comment.