summaryrefslogtreecommitdiff
path: root/world/src
diff options
context:
space:
mode:
Diffstat (limited to 'world/src')
-rw-r--r--world/src/main.rs10
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)