We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3c2be30 commit 065c3d4Copy full SHA for 065c3d4
scripts/sound_import/sound_import.gml
@@ -38,7 +38,11 @@ function find_asset_indexes() {
38
file_find_close();
39
40
array_sort(asset_indexes, function(elm1, elm2) {
41
- return ds_list_find_index(sound_import_asset_index_names_sort, elm1) < ds_list_find_index(sound_import_asset_index_names_sort, elm2);
+ var index1 = ds_list_find_index(sound_import_asset_index_names_sort, elm1)
42
+ var index2 = ds_list_find_index(sound_import_asset_index_names_sort, elm2)
43
+ if (index1 == -1) return -1; // Sort newer Minecraft versions at the top
44
+ if (index2 == -1) return 1;
45
+ return index1 < index2;
46
});
47
48
return asset_indexes;
0 commit comments