Beispiel #1
0
        public static void ReadLocaleAndViewDistance(Client client, PacketReader reader)
        {
            ClientSettingsPacket lvd = new ClientSettingsPacket();
            lvd.Read(reader);

            if(!reader.Failed)
                Client.HandlePacketLocaleAndViewDistance(client, lvd);
        }
Beispiel #2
0
 public static void HandlePacketLocaleAndViewDistance(Client client, ClientSettingsPacket packet)
 {
     if (packet.ViewDistance < ChraftConfig.MaxSightRadius)
         client.CurrentSightRadius = packet.ViewDistance;
 }