diff --git a/rust/src/java/native_callbacks/entity.rs b/rust/src/java/native_callbacks/entity.rs index dc76785..17bc0bb 100644 --- a/rust/src/java/native_callbacks/entity.rs +++ b/rust/src/java/native_callbacks/entity.rs @@ -49,7 +49,9 @@ pub fn ffi_native_bridge_damage_entity_impl(request: DamageEntityRequest) -> Opt }) } -pub fn ffi_native_bridge_get_entity_velocity_impl(request: Uuid) -> Option { +pub fn ffi_native_bridge_get_entity_velocity_impl( + request: Uuid, +) -> Option { with_player(Some(&request), |player| { let vel = player.living_entity.entity.velocity.load(); crate::proto::patchbukkit::entity::EntityVelocityResponse { @@ -73,7 +75,9 @@ pub fn ffi_native_bridge_set_entity_pose_impl( Some(()) } -pub fn ffi_native_bridge_get_gamemode_impl(request: Uuid) -> Option { +pub fn ffi_native_bridge_get_gamemode_impl( + request: Uuid, +) -> Option { with_player(Some(&request), |player| { let gamemode = player.gamemode.load(); crate::proto::patchbukkit::entity::GetGamemodeResponse { diff --git a/rust/src/java/native_callbacks/world.rs b/rust/src/java/native_callbacks/world.rs index 7c34e58..b10196a 100644 --- a/rust/src/java/native_callbacks/world.rs +++ b/rust/src/java/native_callbacks/world.rs @@ -131,4 +131,3 @@ pub fn ffi_native_bridge_set_world_border_impl( Some(()) } -