From 163e10c9f618f0e4cd7b4456476ad1c2322db5d7 Mon Sep 17 00:00:00 2001 From: metamuffin Date: Tue, 28 Jan 2025 18:03:18 +0100 Subject: fix use-cache and armature key --- world/src/main.rs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'world/src') diff --git a/world/src/main.rs b/world/src/main.rs index c65342f..b0b9dad 100644 --- a/world/src/main.rs +++ b/world/src/main.rs @@ -82,7 +82,7 @@ pub struct Args { dry_run: bool, #[arg(long)] - put_cache: bool, + use_cache: bool, #[arg(long)] debug_light: bool, @@ -92,7 +92,7 @@ fn main() -> Result<()> { env_logger::init_from_env("LOG"); let args = Args::parse(); - let store = if args.put_cache { + let store = if args.use_cache { ResourceStore::new_env()? } else { ResourceStore::new_memory() @@ -300,10 +300,10 @@ fn main() -> Result<()> { }); } - if args.put_cache { - return Ok(()); - } if args.push { + if args.use_cache { + return Ok(()); + } store.iter(|k, _| { Packet::RespondResource(k, Data(store.get_raw(k).unwrap().unwrap())) .write(&mut sock) -- cgit v1.2.3-70-g09d2