isaacscript-common 20.14.0 → 20.14.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  --[[
2
2
 
3
- isaacscript-common 20.14.0
3
+ isaacscript-common 20.14.1
4
4
 
5
5
  This is the "isaacscript-common" library, which was created with the IsaacScript tool.
6
6
 
@@ -42504,7 +42504,9 @@ function CustomStages.prototype.setCustomStage(self, name, firstFloor, streakTex
42504
42504
  end)
42505
42505
  end
42506
42506
  local music = customStage.music == nil and getMusicForStage(nil, baseStage, baseStageType) or Isaac.GetMusicIdByName(customStage.music)
42507
- musicManager:Play(music)
42507
+ self.runInNFrames:runNextGameFrame(function()
42508
+ musicManager:Play(music)
42509
+ end)
42508
42510
  end
42509
42511
  function CustomStages.prototype.disableCustomStage(self)
42510
42512
  self.v.run.currentCustomStage = nil
@@ -1 +1 @@
1
- {"version":3,"file":"CustomStages.d.ts","sourceRoot":"","sources":["../../../../../src/classes/features/other/CustomStages.ts"],"names":[],"mappings":"AAyCA,OAAO,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAC;AAoChD,qBAAa,YAAa,SAAQ,OAAO;IA8BvC,oCAAoC;IACpC,OAAO,CAAC,eAAe,CAAkC;IAEzD,+BAA+B;IAC/B,OAAO,CAAC,yBAAyB,CAAwC;IAEzE,OAAO,CAAC,kBAAkB,CAAqB;IAC/C,OAAO,CAAC,eAAe,CAAkB;IACzC,OAAO,CAAC,eAAe,CAAkB;IACzC,OAAO,CAAC,sBAAsB,CAAyB;IACvD,OAAO,CAAC,KAAK,CAAQ;IACrB,OAAO,CAAC,YAAY,CAAe;IAqDnC,OAAO,CAAC,uBAAuB;IAc/B,OAAO,CAAC,eAAe;IASvB,OAAO,CAAC,6BAA6B;IAOrC,OAAO,CAAC,eAAe,CAarB;IAGF,OAAO,CAAC,UAAU,CAQhB;IAGF,OAAO,CAAC,aAAa,CAcnB;IAGF,OAAO,CAAC,eA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UAAU,UAAO,EACjB,UAAU,UAAO,EACjB,OAAO,UAAQ,GACd,IAAI;IA+EP;;;;;OAKG;IAEI,kBAAkB,IAAI,IAAI;CAGlC"}
@@ -341,7 +341,9 @@ function CustomStages.prototype.setCustomStage(self, name, firstFloor, streakTex
341
341
  end)
342
342
  end
343
343
  local music = customStage.music == nil and getMusicForStage(nil, baseStage, baseStageType) or Isaac.GetMusicIdByName(customStage.music)
344
- musicManager:Play(music)
344
+ self.runInNFrames:runNextGameFrame(function()
345
+ musicManager:Play(music)
346
+ end)
345
347
  end
346
348
  function CustomStages.prototype.disableCustomStage(self)
347
349
  self.v.run.currentCustomStage = nil
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "isaacscript-common",
3
- "version": "20.14.0",
3
+ "version": "20.14.1",
4
4
  "description": "Helper functions and features for IsaacScript mods.",
5
5
  "keywords": [
6
6
  "isaac",
@@ -503,7 +503,9 @@ export class CustomStages extends Feature {
503
503
  customStage.music === undefined
504
504
  ? getMusicForStage(baseStage, baseStageType)
505
505
  : Isaac.GetMusicIdByName(customStage.music);
506
- musicManager.Play(music);
506
+ this.runInNFrames.runNextGameFrame(() => {
507
+ musicManager.Play(music);
508
+ });
507
509
 
508
510
  // We must reload the current room in order for the `Level.SetStage` method to take effect.
509
511
  // Furthermore, we need to cancel the queued warp to the `GridRoom.DEBUG` room. We can