diff --git a/project.xml b/project.xml
index 58fe0406..327e5bd7 100644
--- a/project.xml
+++ b/project.xml
@@ -149,7 +149,7 @@
-
+
diff --git a/source/funkin/game/PlayState.hx b/source/funkin/game/PlayState.hx
index b30d8a49..2e582599 100644
--- a/source/funkin/game/PlayState.hx
+++ b/source/funkin/game/PlayState.hx
@@ -561,12 +561,6 @@ class PlayState extends MusicBeatState
// case "":
// ADD YOUR HARDCODED SCRIPTS HERE!
default:
- function addScript(file:String) {
- var ext = Path.extension(file).toLowerCase();
- if (Script.scriptExtensions.contains(ext))
- scripts.add(Script.create(file));
- }
-
for(content in [Paths.getFolderContent('songs/${SONG.meta.name.toLowerCase()}/scripts', true, fromMods ? MODS : BOTH), Paths.getFolderContent('data/charts/', true, fromMods ? MODS : BOTH)])
for(file in content) addScript(file);
@@ -1594,6 +1588,12 @@ class PlayState extends MusicBeatState
scripts.call("beatHit", [curBeat]);
}
+ public function addScript(file:String) {
+ var ext = Path.extension(file).toLowerCase();
+ if (Script.scriptExtensions.contains(ext))
+ scripts.add(Script.create(file));
+ }
+
// GETTERS & SETTERS
#if REGION
private inline function get_player():StrumLine