Skip to content

Commit

Permalink
更多问题修复
Browse files Browse the repository at this point in the history
  • Loading branch information
YongAn404 committed Aug 26, 2024
1 parent d38cc00 commit d22e1d3
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
4 changes: 2 additions & 2 deletions Core/FramePlayer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -73,8 +73,7 @@ private static void OnStaticVerified(VerifiedEventArgs args)
}
private static void OnStaticDestroying(DestroyingEventArgs args)
{
FramePlayer fPlayer = args.Player.ToFPlayer();
fPlayer.Invalid();
args.Player.ToFPlayer().Invalid();
}
private static void OnStaticWaitingForPlayers()
{
Expand Down Expand Up @@ -253,6 +252,7 @@ public static FramePlayer Get(int numId)
public void Invalid()
{
Events.Handlers.FramePlayer.OnInvalidFramePlayer(new InvalidFramePlayerEventArgs(this));
dictionary.Remove(ExPlayer.Id);
HintManager?.Clean();
ExPlayer = null;
}
Expand Down
4 changes: 4 additions & 0 deletions Core/Manager/HintManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,8 @@ public IEnumerator<float> Update()

used = 20;

text[used] = "<align=left>";

if (ChatTexts.Count > 28 - used)
{
for (int i = 0; i < ChatTexts.Count - (28 - used); i++)
Expand All @@ -65,6 +67,8 @@ public IEnumerator<float> Update()
}
}

used = 29;

if (usedMex - RoleText.Count < used + MessageTexts.Count + 1)
{
for (int i = 0; i < usedMex - RoleText.Count - (used + MessageTexts.Count + 1); i++)
Expand Down
2 changes: 1 addition & 1 deletion Core/Manager/MusicManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ public AudioPlayerBase Play(string musicFile, string npcId, string npcName, Trac
audioPlayerBase.AudioToPlay = playerListId;
}

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

0 comments on commit d22e1d3

Please sign in to comment.