This commit is contained in:
Frakist
2023-10-14 08:48:43 +03:00
parent 2d2099e37a
commit e49b0653e3
2 changed files with 6 additions and 6 deletions
+3 -3
View File
@@ -113,10 +113,10 @@ class MusicBeatState extends FlxState implements IBeatReceiver
}
function loadScript() {
var className = Type.getClassName(Type.getClass(this));
if (stateScripts == null)
(stateScripts = new ScriptPack(className)).setParent(this);
if (scriptsAllowed) {
var className = Type.getClassName(Type.getClass(this));
if (stateScripts == null)
(stateScripts = new ScriptPack(className)).setParent(this);
if (stateScripts.scripts.length == 0) {
var scriptName = this.scriptName != null ? this.scriptName : className.substr(className.lastIndexOf(".")+1);
for (i in funkin.backend.assets.ModsFolder.getLoadedMods()) {
+3 -3
View File
@@ -100,10 +100,10 @@ class MusicBeatSubstate extends FlxSubState implements IBeatReceiver
}
function loadScript() {
var className = Type.getClassName(Type.getClass(this));
if (stateScripts == null)
(stateScripts = new ScriptPack(className)).setParent(this);
if (scriptsAllowed) {
var className = Type.getClassName(Type.getClass(this));
if (stateScripts == null)
(stateScripts = new ScriptPack(className)).setParent(this);
if (stateScripts.scripts.length == 0) {
var scriptName = this.scriptName != null ? this.scriptName : className.substr(className.lastIndexOf(".")+1);
for (i in funkin.backend.assets.ModsFolder.getLoadedMods()) {