fix: Moves many EventSinks out of core. (#1783)
This commit is contained in:
parent
1cb798d807
commit
00908d030f
45 changed files with 133 additions and 276 deletions
|
|
@ -16,8 +16,6 @@ public static class AssistantHandler
|
|||
{
|
||||
Enabled = ServerConfiguration.GetOrUpdateSetting("assistants.enableNegotiation", false);
|
||||
|
||||
EventSink.Login += OnLogin;
|
||||
|
||||
IncomingPackets.Register(0xBE, 0, false, &AssistVersion);
|
||||
AssistantProtocol.Register(0xFF, false, &HandshakeResponse);
|
||||
}
|
||||
|
|
@ -47,7 +45,7 @@ public static class AssistantHandler
|
|||
m.NetState.LogInfo("Failed to negotiate assistant features.");
|
||||
}
|
||||
|
||||
private static void OnLogin(Mobile m)
|
||||
public static void OnLogin(Mobile m)
|
||||
{
|
||||
if (m?.NetState?.Running != true || !Enabled)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue