From 4f256d606793e4c6f2627f4a10e71cc219ea8b67 Mon Sep 17 00:00:00 2001 From: troido Date: Fri, 3 Apr 2020 11:51:21 +0200 Subject: also replace lootlist parameter with list --- src/parameter.rs | 5 ----- 1 file changed, 5 deletions(-) (limited to 'src/parameter.rs') 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::>>()?) - ({json!(v.iter().map(|(t, c)| (t.to_json(), *c)).collect::>())}); List (Vec) list, v ({ v -- cgit