Members are overwritten with exclusionsFixed
If i add exclusions to an "Entity Groups" definition, after laoding the plugin, the "members" are overwritten with te content of "exclusions".

In my original Config:

{
   "name": "players",
   "members": "BasePlayer",
   "exclusions": "NPCPlayer, HTNPlayer"
},​

And after loading the Plugin:

{
   "name": "players",
   "members": "NPCPlayer, HTNPlayer",
   "exclusions": ""
},​
looks like this is a copypaste error in class EntityGroup

public string exclusions
{
    get {
        if (exclusionList == null || exclusionList.Count == 0) return "";
            return string.Join(", ", exclusionList.ToArray());
        }
        set {
            if (value == null || value.Equals("")) return;
            memberList = value.Split(',').Select(s => s.Trim()).ToList(); 
        }
    }
}
​

instead of memberList, exclusionList should be adressed in the setter.



Merged post

any chance this oneliner of a fix can be applied before wipe?
Fixed in 1.0.2.  Detail much appreciated.
By the way, this error has been in the plugin at least since it was moved to umod.  Thank you!
yay, much appreciated! thank you!
Locked automatically