public static void HandlePacketLocaleAndViewDistance(Client client, LocaleAndViewDistancePacket packet) { if (packet.ViewDistance < ChraftConfig.MaxSightRadius) { client.CurrentSightRadius = packet.ViewDistance; } }
public static void ReadLocaleAndViewDistance(Client client, PacketReader reader) { LocaleAndViewDistancePacket lvd = new LocaleAndViewDistancePacket(); lvd.Read(reader); if (!reader.Failed) { Client.HandlePacketLocaleAndViewDistance(client, lvd); } }