From 38630a4d5718011032085cab104d5c00f711724e Mon Sep 17 00:00:00 2001 From: Joey Hines Date: Sat, 26 Jul 2025 13:30:08 -0600 Subject: [PATCH] Fixed logging init and flipped DIMs --- Cargo.lock | 2 +- Cargo.toml | 2 +- src/config/mod.rs | 7 ++----- src/main.rs | 2 +- 4 files changed, 5 insertions(+), 8 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index eca5d56..c56456a 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -37,7 +37,7 @@ dependencies = [ [[package]] name = "albatross" -version = "0.6.0" +version = "0.6.1" dependencies = [ "anvil-region", "chrono 0.4.41", diff --git a/Cargo.toml b/Cargo.toml index b9802e9..65a5d2f 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "albatross" -version = "0.6.0" +version = "0.6.1" authors = ["Joey Hines "] edition = "2024" diff --git a/src/config/mod.rs b/src/config/mod.rs index bcba72e..25cba8b 100644 --- a/src/config/mod.rs +++ b/src/config/mod.rs @@ -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 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, } } diff --git a/src/main.rs b/src/main.rs index 786efce..5f09440 100644 --- a/src/main.rs +++ b/src/main.rs @@ -67,7 +67,7 @@ fn main() { env_logger::builder() .filter_level(LevelFilter::Info) .parse_default_env() - .build(); + .init(); let opt = Albatross::from_args();