This is my first post, please bear with me here.
I am making a very simple mod for someone that changes all vanilla music. The problem is that the music for some reason does not play. There is not a single error when i build it.
I do not know very much about modding and this is my first attempt with modding.
When i enter another biome that the music i did not add to, the silence goes away. Also sometimes the music volume goes to 0 for some reason. When i enter a biome i did add music to, the music from the previous biome persists. Any help would be appreciated.
Code:
I am making a very simple mod for someone that changes all vanilla music. The problem is that the music for some reason does not play. There is not a single error when i build it.
I do not know very much about modding and this is my first attempt with modding.
When i enter another biome that the music i did not add to, the silence goes away. Also sometimes the music volume goes to 0 for some reason. When i enter a biome i did add music to, the music from the previous biome persists. Any help would be appreciated.
Code:
C#:
using System;
using Terraria;
using Terraria.ModLoader;
using Terraria.ID;
namespace SonicMusicMod
{
class SonicMusicMod : Mod
{
public override void Load()
{
Main.music[MusicID.Boss1] = GetMusic("Sounds/Music/Boss1");
Main.music[MusicID.Snow] = GetMusic("Sounds/Music/Snow");
Main.music[MusicID.Title] = GetMusic("Sounds/Music/Title");
}
}
}