diff options
| author | mat <git@matdoes.dev> | 2025-02-02 21:17:28 +0000 |
|---|---|---|
| committer | mat <git@matdoes.dev> | 2025-02-02 21:17:28 +0000 |
| commit | 8d110a9f7c568fd52fc6c213d707206287311319 (patch) | |
| tree | 6dfed16120460fd726a09a779c5a1387cfa0baf1 /azalea-entity | |
| parent | b08d3d55d7351eff6e27a09d732078c038539958 (diff) | |
| download | azalea-drasl-8d110a9f7c568fd52fc6c213d707206287311319.tar.xz | |
cleanup, fix warnings
Diffstat (limited to 'azalea-entity')
| -rw-r--r-- | azalea-entity/Cargo.toml | 28 | ||||
| -rw-r--r-- | azalea-entity/src/enchantments.rs | 2 | ||||
| -rw-r--r-- | azalea-entity/src/mining.rs | 4 |
3 files changed, 17 insertions, 17 deletions
diff --git a/azalea-entity/Cargo.toml b/azalea-entity/Cargo.toml index 0427f2df..3c5e12d6 100644 --- a/azalea-entity/Cargo.toml +++ b/azalea-entity/Cargo.toml @@ -1,10 +1,10 @@ [package] name = "azalea-entity" description = "Things related to Minecraft entities used by Azalea" -version = { workspace = true } -edition = { workspace = true } -license = { workspace = true } -repository = { workspace = true } +version.workspace = true +edition.workspace = true +license.workspace = true +repository.workspace = true [dependencies] azalea-block = { path = "../azalea-block", version = "0.11.0" } @@ -16,13 +16,13 @@ azalea-core = { path = "../azalea-core", version = "0.11.0" } azalea-inventory = { path = "../azalea-inventory", version = "0.11.0" } azalea-registry = { path = "../azalea-registry", version = "0.11.0" } azalea-world = { path = "../azalea-world", version = "0.11.0" } -bevy_app = { workspace = true } -bevy_ecs = { workspace = true } -derive_more = { workspace = true } -enum-as-inner = { workspace = true } -nohash-hasher = { workspace = true } -parking_lot = { workspace = true } -simdnbt = { workspace = true } -thiserror = { workspace = true } -tracing = { workspace = true } -uuid = { workspace = true } +bevy_app.workspace = true +bevy_ecs.workspace = true +derive_more.workspace = true +enum-as-inner.workspace = true +nohash-hasher.workspace = true +parking_lot.workspace = true +simdnbt.workspace = true +thiserror.workspace = true +tracing.workspace = true +uuid.workspace = true diff --git a/azalea-entity/src/enchantments.rs b/azalea-entity/src/enchantments.rs index fd238bf2..d51cf752 100644 --- a/azalea-entity/src/enchantments.rs +++ b/azalea-entity/src/enchantments.rs @@ -1,4 +1,4 @@ -pub fn get_enchant_level( +pub fn _get_enchant_level( _enchantment: azalea_registry::Enchantment, _player_inventory: &azalea_inventory::Menu, ) -> u32 { diff --git a/azalea-entity/src/mining.rs b/azalea-entity/src/mining.rs index e118032d..b17cddf0 100644 --- a/azalea-entity/src/mining.rs +++ b/azalea-entity/src/mining.rs @@ -76,8 +76,8 @@ fn has_correct_tool_for_drops(block: &dyn Block, tool: registry::Item) -> bool { fn destroy_speed( block: registry::Block, tool: registry::Item, - player_inventory: &azalea_inventory::Menu, - fluid_on_eyes: &FluidOnEyes, + _player_inventory: &azalea_inventory::Menu, + _fluid_on_eyes: &FluidOnEyes, physics: &Physics, ) -> f32 { let mut base_destroy_speed = base_destroy_speed(block, tool); |
