From b597d2279db7beb0d619fac472481b7f707609c8 Mon Sep 17 00:00:00 2001 From: troido Date: Thu, 2 Apr 2020 16:07:32 +0200 Subject: built doors --- src/componentwrapper.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/componentwrapper.rs') diff --git a/src/componentwrapper.rs b/src/componentwrapper.rs index c4b70a5..898ab1b 100644 --- a/src/componentwrapper.rs +++ b/src/componentwrapper.rs @@ -181,7 +181,7 @@ components!( Clan (name: String); Home (home: Pos); Faction (faction: String) {Faction::from_str(faction.as_str()).ok_or(aerr!("invalid faction name"))?}; - Interactable (action: String) {Interactable::from_str(action.as_str()).ok_or(aerr!("invalid interactable name"))?}; + Interactable (action: Interaction) {action}; Loot (loot: LootList); Grow ( into: Template (Grow.into.clone()), -- cgit