convert difficulty to lowercase before checking difficulty scripts folder (#646)

This commit is contained in:
skiwcad
2025-06-04 16:23:20 +02:00
committed by GitHub
parent 0ee90abe98
commit 7fc8e6d85b
+1 -1
View File
@@ -615,7 +615,7 @@ class PlayState extends MusicBeatState
// ADD YOUR HARDCODED SCRIPTS HERE!
default:
var normal = 'songs/${SONG.meta.name.toLowerCase()}/scripts';
var scriptsFolders:Array<String> = [normal, normal + '/$difficulty/', 'data/charts/', 'songs/'];
var scriptsFolders:Array<String> = [normal, normal + '/${difficulty.toLowerCase()}/', 'data/charts/', 'songs/'];
for (folder in scriptsFolders) {
for (file in Paths.getFolderContent(folder, true, fromMods ? MODS : BOTH)) {