diff options
| author | troido <troido@protonmail.com> | 2020-04-03 11:51:21 +0200 |
|---|---|---|
| committer | troido <troido@protonmail.com> | 2020-04-03 11:51:21 +0200 |
| commit | 4f256d606793e4c6f2627f4a10e71cc219ea8b67 (patch) | |
| tree | 47d63db8fdbf7f399c332d2ea9c1f025e6311d02 /src/parameter.rs | |
| parent | 0702ea943b801176649fee860715fed0f5348c8d (diff) | |
also replace lootlist parameter with list
Diffstat (limited to 'src/parameter.rs')
| -rw-r--r-- | src/parameter.rs | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/src/parameter.rs b/src/parameter.rs index 3423f69..5466ce6 100644 --- a/src/parameter.rs +++ b/src/parameter.rs @@ -72,11 +72,6 @@ parameters!( Action (ItemAction) action, v (ItemAction::from_json(v)?) (panic!("item actions can't be serialized")); Interaction (Interactable) interaction, v (Interactable::from_json(v)?) (panic!("interactions can't be serialized")); Bool (bool) bool, v (v.as_bool()?) (json!(v)); - LootList (Vec<(Template, f64)>) lootlist, v - (v.as_array()?.iter().map(|item| - Some((Template::from_json(item.get(0)?).ok()?, item.get(1)?.as_f64()?)) - ).collect::<Option<Vec<(Template, f64)>>>()?) - ({json!(v.iter().map(|(t, c)| (t.to_json(), *c)).collect::<Vec<(Value, f64)>>())}); List (Vec<Parameter>) list, v ({ v |
