File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -228,12 +228,12 @@ class APGameState {
228228 }
229229
230230 public function getSongLocations (songName : String , modName : String ): Array <Int > {
231- return locationData (songName + " (" + modName + " )" ).concat (noteData (songName , modName ));
231+ return locationData (songName + ( modName != " " ? " (" + modName + " )" : " " ) ).concat (noteData (songName , modName ));
232232 }
233233
234234 public function checkGoal (songName : String , modName : String ): Bool {
235235 var info = info ();
236- var locations = locationData (songName + " (" + modName + " )" ).concat (noteData (songName , modName ));
236+ var locations = locationData (songName + ( modName != " " ? " (" + modName + " )" : " " ) ).concat (noteData (songName , modName ));
237237 var isGoal : Bool = true ;
238238 for (location in locations ) {
239239 if (info .missingLocations .contains (location )) {
You can’t perform that action at this time.
0 commit comments