Ejemplo n.º 1
0
        private void AboveHeadSwitch_OnSwitch(UIElement element, bool state)
        {
            Main.LocalPlayer.GetModPlayer <MPlayer>().ShowCrown = false;
            Main.LocalPlayer.GetModPlayer <MPlayer>().ShowRank  = state;
            if (crownSwitch.Value)
            {
                crownSwitch.Switch();
            }


            if (Main.netMode == 1)
            {
                MessageSender.SyncModPlayerInfo(-1, -1, Main.LocalPlayer.GetModPlayer <MPlayer>());
            }
        }