diff options
Diffstat (limited to 'src/componentwrapper.rs')
| -rw-r--r-- | src/componentwrapper.rs | 2 |
1 files changed, 1 insertions, 1 deletions
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()), |
