diff options
Diffstat (limited to 'src/componentwrapper.rs')
| -rw-r--r-- | src/componentwrapper.rs | 21 |
1 files changed, 1 insertions, 20 deletions
diff --git a/src/componentwrapper.rs b/src/componentwrapper.rs index c5d95c5..2619d9c 100644 --- a/src/componentwrapper.rs +++ b/src/componentwrapper.rs @@ -216,26 +216,7 @@ components!(all: }; Ear () {Ear::default()}; Build (obj: Template); - Whitelist ( - allowed: Vec<(String, Vec<String>)>, ({ - Whitelist.allowed.iter().map(|(item, players)| - (item.clone(), players.iter().map(|playerid| playerid.name.clone()).collect()) - ).collect() - }) - ) { - Whitelist { - allowed: allowed - .into_iter() - .map(|(item, names)| ( - item, - names - .into_iter() - .map(|name| PlayerId{name}) - .collect::<HashSet<PlayerId>>() - )) - .collect() - } - }; + Whitelist (allowed: HashMap<String, HashSet<PlayerId>>); Dedup (id: String, priority: i64); Minable (trigger: String, total: i64) { Minable { |
