[PR #2580] [MERGED] Stop vexes suffocating inside blocks #4443

Closed
opened 2026-11-03 04:17:11 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/horizon-rust/horizon/pull/2580
Author: @kacpherek
Created: 10/27/2026
Status: ✅ Merged
Merged: 10/27/2026
Merged by: @ludovic111

Base: main ← Head: fix/2578-vex-no-suffocation


📝 Commits (1)

  • 76bebec Stop vexes suffocating inside blocks

📊 Changes

1 file changed (+7 additions, -2 deletions)

View changed files

📝 crates/horizon-client/src/mobs/ai.rs (+7 -2)

📄 Description

What and why

Vexes took suffocation damage while flying through walls. Vanilla vexes move with noPhysics set, so they pass through blocks and never count as being inside a wall. Horizon already moves them through blocks, but its in-wall damage check did not skip them, so a vex inside a block lost a heart every tick.

The in-wall damage in the mob base tick now skips vexes. The vex is the only mob that sets noPhysics (the ender dragon has its own code path).

Fixes #2578.

Vanilla reference

  • Entity.isInWall (returns false when noPhysics)
  • Vex.tick (sets noPhysics around super.tick(), which runs LivingEntity.baseTick)

Self-check

cargo check -p horizon-client passes.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/horizon-rust/horizon/pull/2580 **Author:** [@kacpherek](https://github.com/kacpherek) **Created:** 10/27/2026 **Status:** ✅ Merged **Merged:** 10/27/2026 **Merged by:** [@ludovic111](https://github.com/ludovic111) **Base:** `main` ← **Head:** `fix/2578-vex-no-suffocation` --- ### 📝 Commits (1) - [`76bebec`](https://github.com/horizon-rust/horizon/commit/76bebec833470750b47644a97ebdd79539778cae) Stop vexes suffocating inside blocks ### 📊 Changes **1 file changed** (+7 additions, -2 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-client/src/mobs/ai.rs` (+7 -2) </details> ### 📄 Description ## What and why Vexes took suffocation damage while flying through walls. Vanilla vexes move with `noPhysics` set, so they pass through blocks and never count as being inside a wall. Horizon already moves them through blocks, but its in-wall damage check did not skip them, so a vex inside a block lost a heart every tick. The in-wall damage in the mob base tick now skips vexes. The vex is the only mob that sets `noPhysics` (the ender dragon has its own code path). Fixes #2578. ## Vanilla reference - `Entity.isInWall` (returns false when `noPhysics`) - `Vex.tick` (sets `noPhysics` around `super.tick()`, which runs `LivingEntity.baseTick`) ## Self-check `cargo check -p horizon-client` passes. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-03 04:17:11 +07:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
horizon-rust/horizon#4443
No description provided.