Removed unnecessary rehooking on territory change
This commit is contained in:
@@ -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": [
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user