diff options
author | metamuffin <metamuffin@disroot.org> | 2025-01-28 18:03:18 +0100 |
---|---|---|
committer | metamuffin <metamuffin@disroot.org> | 2025-01-28 18:03:18 +0100 |
commit | 163e10c9f618f0e4cd7b4456476ad1c2322db5d7 (patch) | |
tree | 7508f80014e96d89d2352ee946580f5f2ba599f8 /world/src/main.rs | |
parent | 58e3531cd2316e9c73b01221d68834592ad6a2ff (diff) | |
download | weareserver-163e10c9f618f0e4cd7b4456476ad1c2322db5d7.tar weareserver-163e10c9f618f0e4cd7b4456476ad1c2322db5d7.tar.bz2 weareserver-163e10c9f618f0e4cd7b4456476ad1c2322db5d7.tar.zst |
fix use-cache and armature key
Diffstat (limited to 'world/src/main.rs')
-rw-r--r-- | world/src/main.rs | 10 |
1 files changed, 5 insertions, 5 deletions
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) |