diff --git a/PlayerTags/GameInterface/Nameplates/Nameplate.cs b/PlayerTags/GameInterface/Nameplates/Nameplate.cs index ecd3add..f1013c4 100644 --- a/PlayerTags/GameInterface/Nameplates/Nameplate.cs +++ b/PlayerTags/GameInterface/Nameplates/Nameplate.cs @@ -67,7 +67,7 @@ namespace PlayerTags.GameInterface.Nameplates if (m_PluginAddressResolver.SetPlayerNameplatePtr.HasValue) { - m_SetPlayerNameplateHook = new Hook(m_PluginAddressResolver.SetPlayerNameplatePtr.Value, new SetPlayerNameplateDelegate_Unmanaged(SetPlayerNameplateDetour)); + m_SetPlayerNameplateHook = Hook.FromAddress(m_PluginAddressResolver.SetPlayerNameplatePtr.Value, new SetPlayerNameplateDelegate_Unmanaged(SetPlayerNameplateDetour)); m_SetPlayerNameplateHook?.Enable(); } }