Skip to content

Commit

Permalink
♻️ Optimize and improve code
Browse files Browse the repository at this point in the history
  • Loading branch information
aksiome committed Sep 9, 2023
1 parent 9282050 commit 98b3169
Show file tree
Hide file tree
Showing 36 changed files with 921 additions and 837 deletions.
311 changes: 211 additions & 100 deletions Cargo.lock

Large diffs are not rendered by default.

8 changes: 4 additions & 4 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
[package]
name = "mcwpack"
version = "0.5.0"
version = "0.6.0"
edition = "2021"

[dependencies]
anyhow = "1.0"
clap = { version = "4.1", features = ["derive", "cargo"] }
clap = { version = "4.4", features = ["derive", "cargo"] }
console = "0.15"
derive_more = "0.99"
edit = "0.1"
env_logger = { version = "0.10", default-features = false }
fastanvil = "0"
Expand All @@ -16,9 +17,8 @@ globset = "0.4"
ignore = "0.4"
indicatif = { version = "0.17", features = ["rayon"] }
inquire = { version = "0.6", features = ["console"], default-features = false }
lazy_static = "1.4.0"
log = "0.4"
rayon = "1.6"
rayon = "1.7"
serde = { version = "1.0", features = ["derive"] }
serde_yaml = "0.9"
zip = { version = "0.6", features = ["deflate", "time"], default-features = false }
Expand Down
37 changes: 37 additions & 0 deletions config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
#### MCWPACK CONFIG FILE ####

# Level name (supports minecraft color codes)
name: null
# Directory where the world is packed
dirname: null
# Additional entries (files or directories) to pack
# extra_entries:
# - Readme.md
# - source: ./../anywhere/server.properties
# target: server/server.properties
# Resourcepack directory (or zip archive)
resourcepack: null
# Reset player data in level.dat
reset_player: true
# Archive all non-archived datapacks
zip_datapacks: true
# Remove empty chunks from the world
clean_chunks: true
# Ignored blocks when cleaning chunks (default: minecraft:air)
# The following will delete chunks that only contain air or stone
# ignored_blocks:
# - minecraft:air
# - minecraft:stone
# Filter accepted scores (using glob patterns)
# accepted_scores:
# Filter accepted objectives (using glob patterns)
# accepted_objectives:
# Filter accepted file entries (using glob patterns)
accepted_entries:
- data/*.dat
- datapacks/*
- poi/*.mca
- region/*.mca
- entities/*.mca
- icon.png
- level.dat
119 changes: 0 additions & 119 deletions src/app.rs

This file was deleted.

Loading

0 comments on commit 98b3169

Please sign in to comment.