diff --git a/pumpkin-world/src/level.rs b/pumpkin-world/src/level.rs index 58ad95d54..3f751780b 100644 --- a/pumpkin-world/src/level.rs +++ b/pumpkin-world/src/level.rs @@ -75,11 +75,14 @@ impl Level { match error { // If it doesn't exist, just make a new one WorldInfoError::InfoNotFound => (), - _ => { - log::error!("Failed to load world info!"); + WorldInfoError::UnsupportedVersion(version) => { + log::error!("Failed to load world info!, {version}"); log::error!("{}", error); panic!("Unsupported world data! See the logs for more info."); } + e => { + panic!("World Error {}", e); + } } } else { let dat_path = level_folder.root_folder.join(LEVEL_DAT_FILE_NAME); diff --git a/pumpkin/src/entity/projectile/mod.rs b/pumpkin/src/entity/projectile/mod.rs index 00294642b..a316b49a5 100644 --- a/pumpkin/src/entity/projectile/mod.rs +++ b/pumpkin/src/entity/projectile/mod.rs @@ -67,8 +67,8 @@ impl ThrownItemEntity { self.entity.velocity.store(velocity); let len = velocity.horizontal_length(); self.entity.set_rotation( - velocity.x.atan2(velocity.z).to_degrees() as f32, - velocity.y.atan2(len).to_degrees() as f32, + velocity.x.atan2(velocity.z) as f32 * 57.295_776, + velocity.y.atan2(len) as f32 * 57.295_776, ); } } diff --git a/pumpkin/src/main.rs b/pumpkin/src/main.rs index 4908a7bce..e302bc749 100644 --- a/pumpkin/src/main.rs +++ b/pumpkin/src/main.rs @@ -31,7 +31,7 @@ #![expect(clippy::module_name_repetitions)] #![expect(clippy::struct_excessive_bools)] // Not warn event sending macros -#![allow(unused_labels)] +#![expect(unused_labels)] #[cfg(target_os = "wasi")] compile_error!("Compiling for WASI targets is not supported!");