File tree Expand file tree Collapse file tree 3 files changed +4
-7
lines changed
Expand file tree Collapse file tree 3 files changed +4
-7
lines changed Original file line number Diff line number Diff line change @@ -26,10 +26,7 @@ class ModsFolderLibrary extends AssetLibrary implements IModsAssetLibrary {
2626 this .folderPath = folderPath ;
2727 this .libName = libName ;
2828 this .prefix = ' assets/ $libName /' ;
29- if (modName == null )
30- this .modName = libName ;
31- else
32- this .modName = modName ;
29+ this .modName = modName == null ? libName : modName ;
3330 super ();
3431 }
3532
Original file line number Diff line number Diff line change @@ -1516,6 +1516,7 @@ class PlayState extends MusicBeatState
15161516 public function endSong (): Void
15171517 {
15181518 scripts .call (" onSongEnd" );
1519+ endingSong = true ;
15191520 canPause = false ;
15201521 inst .volume = 0 ;
15211522 vocals .volume = 0 ;
Original file line number Diff line number Diff line change @@ -272,8 +272,7 @@ class MenuCharacterSprite extends FlxSprite
272272 public var oldChar : WeekData . WeekCharacter = null ;
273273
274274 public function changeCharacter (data : WeekData . WeekCharacter ) {
275- visible = (data != null && data .xml != null );
276- if (! visible ) return ;
275+ if (! (visible = (data != null && data .xml != null ))) return ;
277276
278277 if (oldChar != (oldChar = data )) {
279278 CoolUtil .loadAnimatedGraphic (this , data .spritePath );
@@ -342,7 +341,7 @@ class StoryWeeklist {
342341 public function getWeeksFromSource (source : funkin.backend.assets. AssetsLibraryList . AssetSource , useTxt : Bool = true , loadCharactersData : Bool = true ) {
343342 var path : String = Paths .txt (' weeks/weeks' );
344343 var weeksFound : Array <String > = useTxt && Paths .assetsTree .existsSpecific (path , " TEXT" , source ) ? CoolUtil .coolTextFile (path ) :
345- [for (c in Paths .getFolderContent (' data/weeks/weeks/' , false , source )) if (Path .extension (c ).toLowerCase () == " xml" ) Path .withoutExtension (c )];
344+ [for (c in Paths .getFolderContent (' data/weeks/weeks/' , false , source )) if (Path .extension (c ).toLowerCase () == " xml" ) Path .withoutExtension (c )];
346345
347346 if (weeksFound .length > 0 ) {
348347 for (w in weeksFound ) {
You can’t perform that action at this time.
0 commit comments