From 7e92c14916612e3d6695df704a796ed3246993ed Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=B0=B8=E5=AE=89404?= <101850798+YongAn404@users.noreply.github.com> Date: Tue, 17 Dec 2024 14:46:44 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8D=87=E7=BA=A7=E4=BE=9D=E8=B5=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Roles/MusicManager.cs | 1 + YongAnFrame.csproj | 26 +++++++++++++------------- YongAnTool.cs | 15 --------------- packages.config | 2 +- 4 files changed, 15 insertions(+), 29 deletions(-) diff --git a/Roles/MusicManager.cs b/Roles/MusicManager.cs index 480f20d..66c9e47 100644 --- a/Roles/MusicManager.cs +++ b/Roles/MusicManager.cs @@ -46,6 +46,7 @@ private ReferenceHub CreateMusicNpc(string name) ReferenceHub hubNpc = newNpc.GetComponent(); NetworkServer.AddPlayerForConnection(new FakeConnection(0), newNpc); hubNpc.nicknameSync.Network_myNickSync = name; + hubNpc.authManager.NetworkSyncedUserId = null; MusicNpc.Add($"{num++}:{name}", hubNpc); return hubNpc; } diff --git a/YongAnFrame.csproj b/YongAnFrame.csproj index 2dc1c39..ef6366c 100644 --- a/YongAnFrame.csproj +++ b/YongAnFrame.csproj @@ -40,42 +40,42 @@ lib\net48\Assembly-CSharp-firstpass.dll - packages\ExMod.Exiled.9.0.0-alpha.4\lib\net48\Assembly-CSharp-Publicized.dll + packages\ExMod.Exiled.9.0.0-beta.1\lib\net48\Assembly-CSharp-Publicized.dll False False - packages\ExMod.Exiled.9.0.0-alpha.4\lib\net48\CommandSystem.Core.dll + packages\ExMod.Exiled.9.0.0-beta.1\lib\net48\CommandSystem.Core.dll - packages\ExMod.Exiled.9.0.0-alpha.4\lib\net48\Exiled.API.dll + packages\ExMod.Exiled.9.0.0-beta.1\lib\net48\Exiled.API.dll - packages\ExMod.Exiled.9.0.0-alpha.4\lib\net48\Exiled.CreditTags.dll + packages\ExMod.Exiled.9.0.0-beta.1\lib\net48\Exiled.CreditTags.dll - packages\ExMod.Exiled.9.0.0-alpha.4\lib\net48\Exiled.CustomItems.dll + packages\ExMod.Exiled.9.0.0-beta.1\lib\net48\Exiled.CustomItems.dll - packages\ExMod.Exiled.9.0.0-alpha.4\lib\net48\Exiled.CustomRoles.dll + packages\ExMod.Exiled.9.0.0-beta.1\lib\net48\Exiled.CustomRoles.dll - packages\ExMod.Exiled.9.0.0-alpha.4\lib\net48\Exiled.Events.dll + packages\ExMod.Exiled.9.0.0-beta.1\lib\net48\Exiled.Events.dll - packages\ExMod.Exiled.9.0.0-alpha.4\lib\net48\Exiled.Loader.dll + packages\ExMod.Exiled.9.0.0-beta.1\lib\net48\Exiled.Loader.dll - packages\ExMod.Exiled.9.0.0-alpha.4\lib\net48\Exiled.Permissions.dll + packages\ExMod.Exiled.9.0.0-beta.1\lib\net48\Exiled.Permissions.dll lib\net48\Mirror.dll - packages\ExMod.Exiled.9.0.0-alpha.4\lib\net48\NorthwoodLib.dll + packages\ExMod.Exiled.9.0.0-beta.1\lib\net48\NorthwoodLib.dll - - packages\ExMod.Exiled.9.0.0-alpha.4\lib\net48\PluginAPI.dll + + packages\ExMod.Exiled.9.0.0-beta.1\lib\net48\PluginAPI.dll False @@ -96,7 +96,7 @@ lib\net48\UnityEngine.PhysicsModule.dll - packages\ExMod.Exiled.9.0.0-alpha.4\lib\net48\YamlDotNet.dll + packages\ExMod.Exiled.9.0.0-beta.1\lib\net48\YamlDotNet.dll diff --git a/YongAnTool.cs b/YongAnTool.cs index 3d4a3f4..afcbd38 100644 --- a/YongAnTool.cs +++ b/YongAnTool.cs @@ -34,20 +34,5 @@ public static FramePlayer ToFPlayer(this Player p) { return FramePlayer.Get(p); } - - /// - /// 转换为 - /// - /// - /// - public static RefreshTeamType ToRefreshTeamType(this SpawnableTeamType stp) - { - return stp switch - { - SpawnableTeamType.ChaosInsurgency => RefreshTeamType.CI, - SpawnableTeamType.NineTailedFox => RefreshTeamType.MTF, - _ => RefreshTeamType.Start, - }; - } } } diff --git a/packages.config b/packages.config index ab5743d..e06816f 100644 --- a/packages.config +++ b/packages.config @@ -1,4 +1,4 @@  - + \ No newline at end of file