Music is oddly quiet, but the mod is fully functional on 1.4

This commit is contained in:
Ozzatron committed 2022-04-02 20:33:53 -04:00
1 parent b184e0d669
commit d3af06e4e5
2 files changed
+8 -7

No files matched your search

+3 -3
View File
@@ -8,10 +8,10 @@ namespace CalamityModMusic
{
public override void PostSetupContent()
{
Mod calamity = ModLoader.GetMod("CalamityMod");
Mod bossChecklist = ModLoader.GetMod("BossChecklist");
bool calamityExists = ModLoader.TryGetMod("CalamityMod", out var calamity);
bool bossChecklistExists = ModLoader.TryGetMod("BossChecklist", out var bossChecklist);
if (calamity != null && bossChecklist != null)
if (calamityExists && bossChecklistExists)
{
bossChecklist.Call(
"AddToBossCollection",
+5 -4
View File
@@ -57,11 +57,12 @@ namespace CalamityModMusic
{
private static void AddMusicBox(string musicFile, int itemID, int tileID)
{
int musicID = SoundLoader.GetSoundSlot(CalamityModMusic.Instance, musicFile);
MusicLoader.AddMusicBox(CalamityModMusic.Instance, musicID, itemID, tileID);
Mod musicMod = CalamityModMusic.Instance;
int musicID = MusicLoader.GetMusicSlot(musicMod, musicFile);
MusicLoader.AddMusicBox(musicMod, musicID, itemID, tileID);
}
public override void Load()
public override void PostSetupContent()
{
if (!Main.dedServ)
{