public static void SyncToEveryone(ISet <int> permaBuffsById, ISet <int> hasBuffIds, IDictionary <int, int> equipSlotsToItemTypes) { if (Main.netMode != 1) { throw new ModHelpersException("Not client"); } var protocol = new PlayerDataProtocol(permaBuffsById, hasBuffIds, equipSlotsToItemTypes); protocol.SendToServer(true); }
public static void SyncToEveryone(ISet <int> perma_buffs_by_id, ISet <int> has_buff_ids, IDictionary <int, int> equip_slots_to_item_types) { if (Main.netMode != 1) { throw new Exception("Not client"); } var protocol = new PlayerDataProtocol(Main.myPlayer, perma_buffs_by_id, has_buff_ids, equip_slots_to_item_types); protocol.SendToServer(true); }