diff options
| author | mat <git@matdoes.dev> | 2024-08-15 01:25:11 +0000 |
|---|---|---|
| committer | mat <git@matdoes.dev> | 2024-08-15 01:25:11 +0000 |
| commit | 73091d8f937192aca4c4bbc740c78d4d188f6ee1 (patch) | |
| tree | 440e804d3a84583fb1b6b43a47724f5a17d001b7 /azalea-client/src | |
| parent | dec544a52ba738e2d0e2c3a042e5ccc0cb336ffb (diff) | |
| download | azalea-drasl-73091d8f937192aca4c4bbc740c78d4d188f6ee1.tar.xz | |
fix sometimes being able to mine blocks through walls
Diffstat (limited to 'azalea-client/src')
| -rw-r--r-- | azalea-client/src/mining.rs | 6 |
1 files changed, 3 insertions, 3 deletions
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<BlockPos>); /// 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. |
