Fixed logging init and flipped DIMs
This commit is contained in:
+2
-5
@@ -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,
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user