Error while compiling BuildingRestriction: Argument 2: cannot convert from 'System.Collections.Generic.HashSet' to 'System.Collections.Generic.List' | Line: 142, Pos: 58
Error while compiling
fp change variable list to hashset
Changed the line for that :
private readonly Dictionary<ulong, HashSet<PlayerNameID>> toolCupboards = new Dictionary<ulong, HashSet<PlayerNameID>>();and 331 by this
IEnumerable<KeyValuePair<ulong, HashSet<PlayerNameID>>> cupboards = toolCupboards.Where(c => c.Value.Contains(new PlayerNameID { userid = player.userID }));
After changing I get this error... Error while compiling BuildingRestriction: } expected | Line: 141, Pos: 14