Fixed logging init and flipped DIMs
This commit is contained in:
parent
a9cf1d5c6f
commit
38630a4d57
2
Cargo.lock
generated
2
Cargo.lock
generated
@ -37,7 +37,7 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
name = "albatross"
|
||||
version = "0.6.0"
|
||||
version = "0.6.1"
|
||||
dependencies = [
|
||||
"anvil-region",
|
||||
"chrono 0.4.41",
|
||||
|
@ -1,6 +1,6 @@
|
||||
[package]
|
||||
name = "albatross"
|
||||
version = "0.6.0"
|
||||
version = "0.6.1"
|
||||
authors = ["Joey Hines <joey@ahines.net>"]
|
||||
edition = "2024"
|
||||
|
||||
|
@ -8,11 +8,8 @@ use std::path::PathBuf;
|
||||
/// World types supported
|
||||
#[derive(Debug, Deserialize, Clone)]
|
||||
pub enum WorldType {
|
||||
/// The End (DIM1)
|
||||
End,
|
||||
/// Nether (DIM-1)
|
||||
Nether,
|
||||
/// Overworld
|
||||
Overworld,
|
||||
}
|
||||
|
||||
@ -30,8 +27,8 @@ impl From<String> for WorldType {
|
||||
impl WorldType {
|
||||
pub fn dim_number(&self) -> i8 {
|
||||
match self {
|
||||
WorldType::End => -1,
|
||||
WorldType::Nether => 1,
|
||||
WorldType::End => 1,
|
||||
WorldType::Nether => -1,
|
||||
WorldType::Overworld => 0,
|
||||
}
|
||||
}
|
||||
|
@ -67,7 +67,7 @@ fn main() {
|
||||
env_logger::builder()
|
||||
.filter_level(LevelFilter::Info)
|
||||
.parse_default_env()
|
||||
.build();
|
||||
.init();
|
||||
|
||||
let opt = Albatross::from_args();
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user