Skip to content

Commit

Permalink
hhhh
Browse files Browse the repository at this point in the history
  • Loading branch information
YongAn404 committed Dec 10, 2024
1 parent 66024af commit e59478e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Roles/MusicManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ public AudioPlayerBase Play(string musicFile, string npcName, FramePlayer source
/// <param name="npcName">NPC名称</param>
/// <param name="source">指定玩家</param>
/// <returns></returns>
public AudioPlayerBase Play(string musicFile, string npcName, Player source)
public AudioPlayerBase Play(string musicFile, string npcName, FramePlayer source)
{
return Play(musicFile, npcName, new TrackEvent(), source, [], false, 80, false);
}
Expand Down Expand Up @@ -204,7 +204,7 @@ public AudioPlayerBase Play(string musicFile, string npcName, TrackEvent trackEv
audioPlayerBase.AudioToPlay = extraPlay.Select((s) => { return s.ExPlayer.UserId; }).ToList();
}

audioPlayerBase.AudioToPlay.Add(source.UserId);
audioPlayerBase.AudioToPlay.Add(source.ExPlayer.UserId);

audioPlayerBase.Enqueue($"{Paths.Plugins}/{Server.Port}/YongAnPluginData/{musicFile}.ogg", 0);
audioPlayerBase.Volume = volume;
Expand Down

0 comments on commit e59478e

Please sign in to comment.