We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6d069a8 commit 8626e81Copy full SHA for 8626e81
pumpkin/src/entity/living.rs
@@ -880,7 +880,7 @@ impl LivingEntity {
880
881
async fn travel_in_fluid(&self, caller: Arc<dyn EntityBase>, water: bool) {
882
let movement_input = self.movement_input.load();
883
- let y0 = self.entity.pos.load().y;
+
884
let falling = self.entity.velocity.load().y <= 0.0;
885
let gravity = self.get_effective_gravity(&caller).await;
886
let effective_speed = self.get_attribute_value(&Attributes::MOVEMENT_SPEED);
@@ -951,8 +951,6 @@ impl LivingEntity {
951
952
let mut velo = self.entity.velocity.load();
953
954
- velo.y += 0.6 - self.entity.pos.load().y + y0;
955
-
956
if self.entity.horizontal_collision.load(SeqCst)
957
&& !self
958
.entity
0 commit comments