diff options
| author | mat <27899617+mat-1@users.noreply.github.com> | 2025-01-10 16:45:27 -0600 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-01-10 16:45:27 -0600 |
| commit | 0d16f01571ec8315f3979eae46981e559ade1cf9 (patch) | |
| tree | ea43c32a57b0e6a67579d75a134dfbc009d09781 /azalea-entity/src/mining.rs | |
| parent | 615d8f9d2ac56b3244d328587243301da253eafd (diff) | |
| download | azalea-drasl-0d16f01571ec8315f3979eae46981e559ade1cf9.tar.xz | |
Fluid physics (#199)
* start implementing fluid physics
* Initial implementation of fluid pushing
* different travel function in water
* bubble columns
* jumping in water
* cleanup
* change ultrawarm to be required
* fix for clippy
Diffstat (limited to 'azalea-entity/src/mining.rs')
| -rw-r--r-- | azalea-entity/src/mining.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/azalea-entity/src/mining.rs b/azalea-entity/src/mining.rs index ee5c961b..cfa0012e 100644 --- a/azalea-entity/src/mining.rs +++ b/azalea-entity/src/mining.rs @@ -1,4 +1,4 @@ -use azalea_block::{Block, BlockBehavior}; +use azalea_block::{fluid_state::FluidKind, Block, BlockBehavior}; use azalea_core::tier::get_item_tier; use azalea_registry as registry; @@ -105,7 +105,7 @@ fn destroy_speed( base_destroy_speed *= multiplier; } - if registry::tags::fluids::WATER.contains(fluid_on_eyes) + if **fluid_on_eyes == FluidKind::Water && enchantments::get_enchant_level(registry::Enchantment::AquaAffinity, player_inventory) == 0 { |
