From 73091d8f937192aca4c4bbc740c78d4d188f6ee1 Mon Sep 17 00:00:00 2001 From: mat Date: Thu, 15 Aug 2024 01:25:11 +0000 Subject: fix sometimes being able to mine blocks through walls --- azalea-client/src/mining.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'azalea-client/src') diff --git a/azalea-client/src/mining.rs b/azalea-client/src/mining.rs index 0bf416ff..753b00e7 100644 --- a/azalea-client/src/mining.rs +++ b/azalea-client/src/mining.rs @@ -396,16 +396,16 @@ impl MineProgress { /// A component that stores the number of ticks that we've been mining the same /// block for. This is a float even though it should only ever be a round /// number. -#[derive(Component, Debug, Default, Deref, DerefMut)] +#[derive(Component, Clone, Debug, Default, Deref, DerefMut)] pub struct MineTicks(pub f32); /// A component that stores the position of the block we're currently mining. -#[derive(Component, Debug, Default, Deref, DerefMut)] +#[derive(Component, Clone, Debug, Default, Deref, DerefMut)] pub struct MineBlockPos(pub Option); /// A component that contains the item we're currently using to mine. If we're /// not mining anything, it'll be [`ItemSlot::Empty`]. -#[derive(Component, Debug, Default, Deref, DerefMut)] +#[derive(Component, Clone, Debug, Default, Deref, DerefMut)] pub struct MineItem(pub ItemSlot); /// Sent when we completed mining a block. -- cgit v1.2.3