Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement hscript-improved #13304

Closed
Prev Previous commit
Next Next commit
remove spam!!!!
  • Loading branch information
TheLeerName committed Sep 19, 2023
commit 423d3586c61e2964b27ba5a1656abbc94e50f808
3 changes: 2 additions & 1 deletion source/states/PlayState.hx
Original file line number Diff line number Diff line change
Expand Up @@ -3250,14 +3250,15 @@ class PlayState extends MusicBeatState
for(i in 0...len)
{
var script:HScript = hscriptArray[i];
if(script == null || !script.variables.exists(funcToCall) || exclusions.contains(script.origin))
if(script == null || !script.active || !script.variables.exists(funcToCall) || exclusions.contains(script.origin))
continue;

var myValue:Dynamic = null;
try
{
returnVal = script.executeFunction(funcToCall, args);
if (script.exception != null) {
script.active = false;
FunkinLua.luaTrace('ERROR ($funcToCall) - ${script.exception}', true, false, FlxColor.RED);
}
else
Expand Down
Loading