Esempio n. 1
0
        public override void Receive(BinaryReader reader, int sender)
        {
            Ping ping    = Ping.FromNet(reader);
            bool?success = PingsWorld.AddOrRemove(ping);

            //PingsMod.Log($"Recv ping {success}", true, true);

            if (Main.netMode == NetmodeID.Server)
            {
                new PingPacket(ping).Send(from: sender);
            }
        }