From 76bebec833470750b47644a97ebdd79539778cae Mon Sep 17 00:00:00 2001 From: Kacpherek Date: Tue, 27 Oct 2026 01:01:53 +0100 Subject: [PATCH] Stop vexes suffocating inside blocks --- crates/horizon-client/src/mobs/ai.rs | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/crates/horizon-client/src/mobs/ai.rs b/crates/horizon-client/src/mobs/ai.rs index 3406c09d7..e1951aa66 100644 --- a/crates/horizon-client/src/mobs/ai.rs +++ b/crates/horizon-client/src/mobs/ai.rs @@ -520,14 +520,19 @@ fn base_tick(m: &mut Mob, w: &MobWorld, events: &mut Vec) { } m.first_tick = false; if m.alive() { - // LivingEntity.baseTick: suffocation inside full blocks. + // LivingEntity.baseTick: suffocation inside full blocks. Entity.isInWall + // is false under noPhysics, which Vex.tick holds while it ticks. let (ex, ey, ez) = ( m.position.x.floor() as i32, m.eye_y().floor() as i32, m.position.z.floor() as i32, ); let at_eye = w.facts.get(w.world.block(ex, ey, ez)); - if at_eye.full_collision && at_eye.solid_render && m.width() < 1.0 { + if at_eye.full_collision + && at_eye.solid_render + && m.width() < 1.0 + && m.species() != Species::Vex + { m.damage(1.0, Damage::of(DamageKind::InWall)); } // Air supply and drowning (WaterAnimal.handleAirSupply for aquatic mobs).