diff options
Diffstat (limited to 'src/componentwrapper.rs')
| -rw-r--r-- | src/componentwrapper.rs | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/componentwrapper.rs b/src/componentwrapper.rs index 638531b..e1389c4 100644 --- a/src/componentwrapper.rs +++ b/src/componentwrapper.rs @@ -134,8 +134,9 @@ components!( }; Clan (name: String) Clan{name}; Home (home: Pos) Home{home}; - Faction (faction: String) {Faction::from_str(faction.as_str()).unwrap()}; - Interactable (action: String) {Interactable::from_str(action.as_str()).unwrap()}; + Faction (faction: String) {Faction::from_str(faction.as_str())?}; + Interactable (action: String) {Interactable::from_str(action.as_str())?}; + Loot (loot: LootList) {Loot{loot}}; ); |
