diff --git a/ScuffedVideoPlayer/App.config b/ScuffedVideoPlayer/App.config index bfb78a8..2b9e521 100644 --- a/ScuffedVideoPlayer/App.config +++ b/ScuffedVideoPlayer/App.config @@ -11,7 +11,7 @@ - + diff --git a/ScuffedVideoPlayer/Patches/InstanceModeSetterPatch.cs b/ScuffedVideoPlayer/Patches/InstanceModeSetterPatch.cs index 49ada64..600fb14 100644 --- a/ScuffedVideoPlayer/Patches/InstanceModeSetterPatch.cs +++ b/ScuffedVideoPlayer/Patches/InstanceModeSetterPatch.cs @@ -1,12 +1,13 @@ namespace ScuffedVideoPlayer.Patches { + using CentralAuth; using HarmonyLib; using ScuffedVideoPlayer.Audio; - [HarmonyPatch(typeof(CharacterClassManager), nameof(CharacterClassManager.InstanceMode), MethodType.Setter)] + [HarmonyPatch(typeof(PlayerAuthenticationManager), nameof(PlayerAuthenticationManager.InstanceMode), MethodType.Setter)] public class InstanceModeSetterPatch { - public static bool Prefix(CharacterClassManager __instance) + public static bool Prefix(PlayerAuthenticationManager __instance) => !AudioNpc.IsNpc(__instance._hub); } } \ No newline at end of file diff --git a/ScuffedVideoPlayer/Plugin.cs b/ScuffedVideoPlayer/Plugin.cs index 169044d..2b46df3 100644 --- a/ScuffedVideoPlayer/Plugin.cs +++ b/ScuffedVideoPlayer/Plugin.cs @@ -48,7 +48,7 @@ public static int GetDisplayId() public static Plugin? Instance { get; private set; } private Harmony? _harmony; - [PluginEntryPoint("ScuffedVideoPlayer", "1.0.2", "scuffed video player", "moddedmcplayer")] + [PluginEntryPoint("ScuffedVideoPlayer", "1.0.3", "scuffed video player", "moddedmcplayer")] private void OnEnabled() { Instance = this; diff --git a/ScuffedVideoPlayer/ScuffedVideoPlayer.csproj b/ScuffedVideoPlayer/ScuffedVideoPlayer.csproj index 2b23fd7..192825b 100644 --- a/ScuffedVideoPlayer/ScuffedVideoPlayer.csproj +++ b/ScuffedVideoPlayer/ScuffedVideoPlayer.csproj @@ -91,8 +91,8 @@ C:\Users\admin\AppData\Roaming\SCP Secret Laboratory\PluginAPI\NWAPIPermissionSystem.dll - - ..\packages\Northwood.PluginAPI.13.1.1\lib\net48\PluginAPI.dll + + ..\packages\Northwood.PluginAPI.13.1.2\lib\net48\PluginAPI.dll C:\Users\admin\AppData\Roaming\SCP Secret Laboratory\PluginAPI\SCPSLAudioApi.dll diff --git a/ScuffedVideoPlayer/packages.config b/ScuffedVideoPlayer/packages.config index f684dc5..00eb9c5 100644 --- a/ScuffedVideoPlayer/packages.config +++ b/ScuffedVideoPlayer/packages.config @@ -8,7 +8,7 @@ - +