Some hooks aren't disposed.
This commit is contained in:
parent
4473632691
commit
fcc7cfff50
1 changed files with 3 additions and 0 deletions
|
|
@ -259,6 +259,7 @@ namespace TShockAPI
|
||||||
}
|
}
|
||||||
GameHooks.PostInitialize -= OnPostInit;
|
GameHooks.PostInitialize -= OnPostInit;
|
||||||
GameHooks.Update -= OnUpdate;
|
GameHooks.Update -= OnUpdate;
|
||||||
|
ServerHooks.Connect -= OnConnect;
|
||||||
ServerHooks.Join -= OnJoin;
|
ServerHooks.Join -= OnJoin;
|
||||||
ServerHooks.Leave -= OnLeave;
|
ServerHooks.Leave -= OnLeave;
|
||||||
ServerHooks.Chat -= OnChat;
|
ServerHooks.Chat -= OnChat;
|
||||||
|
|
@ -267,7 +268,9 @@ namespace TShockAPI
|
||||||
NetHooks.SendData -= NetHooks_SendData;
|
NetHooks.SendData -= NetHooks_SendData;
|
||||||
NetHooks.GreetPlayer -= OnGreetPlayer;
|
NetHooks.GreetPlayer -= OnGreetPlayer;
|
||||||
NpcHooks.StrikeNpc -= NpcHooks_OnStrikeNpc;
|
NpcHooks.StrikeNpc -= NpcHooks_OnStrikeNpc;
|
||||||
|
NpcHooks.SetDefaultsInt -= OnNpcSetDefaults;
|
||||||
ProjectileHooks.SetDefaults -= OnProjectileSetDefaults;
|
ProjectileHooks.SetDefaults -= OnProjectileSetDefaults;
|
||||||
|
WorldHooks.StartHardMode -= OnStartHardMode;
|
||||||
if (File.Exists(Path.Combine(SavePath, "tshock.pid")))
|
if (File.Exists(Path.Combine(SavePath, "tshock.pid")))
|
||||||
{
|
{
|
||||||
File.Delete(Path.Combine(SavePath, "tshock.pid"));
|
File.Delete(Path.Combine(SavePath, "tshock.pid"));
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue