Skip to content

Commit e59478e

Browse files
committed
hhhh
1 parent 66024af commit e59478e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Roles/MusicManager.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ public AudioPlayerBase Play(string musicFile, string npcName, FramePlayer source
9393
/// <param name="npcName">NPC名称</param>
9494
/// <param name="source">指定玩家</param>
9595
/// <returns></returns>
96-
public AudioPlayerBase Play(string musicFile, string npcName, Player source)
96+
public AudioPlayerBase Play(string musicFile, string npcName, FramePlayer source)
9797
{
9898
return Play(musicFile, npcName, new TrackEvent(), source, [], false, 80, false);
9999
}
@@ -204,7 +204,7 @@ public AudioPlayerBase Play(string musicFile, string npcName, TrackEvent trackEv
204204
audioPlayerBase.AudioToPlay = extraPlay.Select((s) => { return s.ExPlayer.UserId; }).ToList();
205205
}
206206

207-
audioPlayerBase.AudioToPlay.Add(source.UserId);
207+
audioPlayerBase.AudioToPlay.Add(source.ExPlayer.UserId);
208208

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

0 commit comments

Comments
 (0)