diff options
author | metamuffin <metamuffin@disroot.org> | 2024-07-07 23:03:07 +0200 |
---|---|---|
committer | metamuffin <metamuffin@disroot.org> | 2024-07-07 23:03:07 +0200 |
commit | cd6e8f3886d764847f92ad75d397e2f2f6ad930a (patch) | |
tree | c99e141bc51c2004cdde1b0660ed10b2696f04d8 /server/src/bin/graph.rs | |
parent | fd46def1ebc10d1f2ee4f4447f33e2dfb35986d2 (diff) | |
download | hurrycurry-cd6e8f3886d764847f92ad75d397e2f2f6ad930a.tar hurrycurry-cd6e8f3886d764847f92ad75d397e2f2f6ad930a.tar.bz2 hurrycurry-cd6e8f3886d764847f92ad75d397e2f2f6ad930a.tar.zst |
add option to download map source
Diffstat (limited to 'server/src/bin/graph.rs')
-rw-r--r-- | server/src/bin/graph.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/server/src/bin/graph.rs b/server/src/bin/graph.rs index 024512c6..766fa851 100644 --- a/server/src/bin/graph.rs +++ b/server/src/bin/graph.rs @@ -16,6 +16,7 @@ */ use anyhow::{anyhow, Result}; +use pollster::FutureExt; use undercooked::{ data::{DataIndex, Demand}, interaction::Recipe, @@ -32,7 +33,7 @@ fn main() -> Result<()> { .nth(1) .ok_or(anyhow!("first arg should be recipe set name"))?; - let data = index.generate(format!("small-default-{rn}"))?; + let data = index.generate(format!("small-default-{rn}")).block_on()?; for i in 0..data.item_names.len() { println!("i{i} [label=\"{}\"]", data.item_name(ItemIndex(i))) |