File tree Expand file tree Collapse file tree 1 file changed +10
-10
lines changed Expand file tree Collapse file tree 1 file changed +10
-10
lines changed Original file line number Diff line number Diff line change @@ -205,11 +205,11 @@ export default class ParserValidator {
205205
206206 case GameEntityType . bgms :
207207 const numberOfBgm = [
208- ...Parser . checkpoint . map . getSoundAssets ( ) , // Imported sound assets
209- ...Object . values ( SoundAssets ) // Default sound assets
210- ] . filter (
211- sound => sound . soundType === GameSoundType . BGM && sound . key === itemId
212- ) . length ;
208+ ...Parser . checkpoint . map . getSoundAssets ( ) , // Imported sound assets
209+ ...Object . values ( SoundAssets ) // Default sound assets
210+ ] . filter (
211+ sound => sound . soundType === GameSoundType . BGM && sound . key === itemId
212+ ) . length ;
213213 if ( numberOfBgm === 0 ) {
214214 throw new Error ( `Cannot find bgm key "${ itemId } "` ) ;
215215 } else if ( numberOfBgm > 1 ) {
@@ -219,11 +219,11 @@ export default class ParserValidator {
219219
220220 case GameEntityType . sfxs :
221221 const numberOfSfx = [
222- ...Parser . checkpoint . map . getSoundAssets ( ) , // Imported sound assets
223- ...Object . values ( SoundAssets ) // Default sound assets
224- ] . filter (
225- sound => sound . soundType === GameSoundType . SFX && sound . key === itemId
226- ) . length ;
222+ ...Parser . checkpoint . map . getSoundAssets ( ) , // Imported sound assets
223+ ...Object . values ( SoundAssets ) // Default sound assets
224+ ] . filter (
225+ sound => sound . soundType === GameSoundType . SFX && sound . key === itemId
226+ ) . length ;
227227 if ( numberOfSfx === 0 ) {
228228 throw new Error ( `Cannot find sfx key "${ itemId } "` ) ;
229229 } else if ( numberOfSfx > 1 ) {
You can’t perform that action at this time.
0 commit comments