fix packet throttling with handler overlay

This commit is contained in:
mark 2007-08-09 22:01:27 +00:00
parent d5ebe946e9
commit 4915268e43
3 changed files with 17 additions and 18 deletions

View file

@ -389,11 +389,7 @@ namespace Server.Mobiles
public static void Initialize()
{
if ( FastwalkPrevention )
{
PacketHandler ph = PacketHandlers.GetHandler( 0x02 );
ph.ThrottleCallback = new ThrottlePacketCallback( MovementThrottle_Callback );
}
PacketHandlers.RegisterThrottler( 0x02, new ThrottlePacketCallback( MovementThrottle_Callback ) );
EventSink.Login += new LoginEventHandler( OnLogin );
EventSink.Logout += new LogoutEventHandler( OnLogout );