private void HandlePacketCombo(BinaryReader reader, int code, int sender) { int comboEffect = reader.ReadInt32(); if (Main.netMode == 2) { ModPacket me = GetPacket(); me.Write(code); me.Write(sender); me.Write(comboEffect); me.Send(-1, sender); //-/ Console.WriteLine("echo combo " + comboEffect + " from " + sender); } else { ModPlayerFists pfx = Main.player[sender].GetModPlayer <ModPlayerFists>(this); pfx.player.itemAnimation = 0; pfx.AltFunctionCombo(Main.player[sender], comboEffect, true); //-/ Main.NewText("received combo " + comboEffect + " from " + sender); } }