summaryrefslogtreecommitdiff
path: root/src/componentwrapper.rs
diff options
context:
space:
mode:
authortroido <troido@protonmail.com>2020-04-02 16:07:32 +0200
committertroido <troido@protonmail.com>2020-04-02 16:07:32 +0200
commitb597d2279db7beb0d619fac472481b7f707609c8 (patch)
tree3d45ea9f45a8897a3aec5c30b16bb0db12b162b2 /src/componentwrapper.rs
parent1e8fe74740fc4fb11b660415b2db182c6a63a3c2 (diff)
built doors
Diffstat (limited to 'src/componentwrapper.rs')
-rw-r--r--src/componentwrapper.rs2
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()),