Removed unnecessary rehooking on territory change

This commit is contained in:
r00telement
2021-10-30 00:27:18 +01:00
parent efa68dfbe7
commit 51bb2db80d
2 changed files with 1 additions and 7 deletions

View File

@@ -2,6 +2,7 @@
"Author": "r00telement",
"Name": "Player Tags",
"Description": "See tags for players in nameplates and chat, such as their role and job, or custom tags for players you know.",
"Tags": [ "Jobs", "UI" ],
"RepoUrl": "https://github.com/r00telement/PlayerTags",
"IconUrl": "https://github.com/r00telement/PlayerTags/raw/main/PlayerTags/Resources/Promo/Icon.png",
"ImageUrls": [

View File

@@ -72,7 +72,6 @@ namespace PlayerTags
ClientState.Login += ClientState_Login;
ClientState.Logout += ClientState_Logout;
ClientState.TerritoryChanged += ClientState_TerritoryChanged;
ChatGui.ChatMessage += Chat_ChatMessage;
PluginInterface.UiBuilder.Draw += UiBuilder_Draw;
PluginInterface.UiBuilder.OpenConfigUi += UiBuilder_OpenConfigUi;
@@ -96,7 +95,6 @@ namespace PlayerTags
PluginInterface.UiBuilder.OpenConfigUi -= UiBuilder_OpenConfigUi;
PluginInterface.UiBuilder.Draw -= UiBuilder_Draw;
ChatGui.ChatMessage -= Chat_ChatMessage;
ClientState.TerritoryChanged -= ClientState_TerritoryChanged;
ClientState.Logout -= ClientState_Logout;
ClientState.Login -= ClientState_Login;
}
@@ -134,11 +132,6 @@ namespace PlayerTags
Unhook();
}
private void ClientState_TerritoryChanged(object? sender, ushort e)
{
Rehook();
}
private void PluginConfiguration_Saved()
{
// Invalidate the cached payloads so they get remade