[PR #2336] [MERGED] Stop zombie drowning conversion when it leaves the water #4217

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

📋 Pull Request Information

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

Base: main ← Head: fix/zombie-drowned-conversion-stops


📝 Commits (1)

  • f242404 Stop zombie drowning conversion when it leaves the water

📊 Changes

1 file changed (+6 additions, -1 deletions)

View changed files

📝 crates/horizon-client/src/mobs/undead.rs (+6 -1)

📄 Description

What and why

A zombie or husk that had already started turning into a drowned or zombie (the last 300 ticks, shaking) kept converting after it climbed out of the water. In vanilla the conversion is cancelled the moment the mob is no longer in water.

The conversion countdown only checked the water while it was still counting the first 600 ticks. Now, if a conversion has started and the mob's eyes are out of water, both counters are reset, like vanilla.

Vanilla reference

  • ConversionTracker.tick: when isAfflicted is false it sets afflictionTime = -1 and setConverting(false), whether or not the conversion had started.
  • Zombie.drowningTracker uses isEyeInFluidMatching(... getIsWaterLike()) as the afflicted check.

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/2336 **Author:** [@kacpherek](https://github.com/kacpherek) **Created:** 10/26/2026 **Status:** ✅ Merged **Merged:** 10/27/2026 **Merged by:** [@ludovic111](https://github.com/ludovic111) **Base:** `main` ← **Head:** `fix/zombie-drowned-conversion-stops` --- ### 📝 Commits (1) - [`f242404`](https://github.com/horizon-rust/horizon/commit/f2424043f38ccd1f68661456e03c8c1885eb07d2) Stop zombie drowning conversion when it leaves the water ### 📊 Changes **1 file changed** (+6 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-client/src/mobs/undead.rs` (+6 -1) </details> ### 📄 Description ## What and why A zombie or husk that had already started turning into a drowned or zombie (the last 300 ticks, shaking) kept converting after it climbed out of the water. In vanilla the conversion is cancelled the moment the mob is no longer in water. The conversion countdown only checked the water while it was still counting the first 600 ticks. Now, if a conversion has started and the mob's eyes are out of water, both counters are reset, like vanilla. ## Vanilla reference - `ConversionTracker.tick`: when `isAfflicted` is false it sets `afflictionTime = -1` and `setConverting(false)`, whether or not the conversion had started. - `Zombie.drowningTracker` uses `isEyeInFluidMatching(... getIsWaterLike())` as the afflicted check. ## 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:15:33 +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#4217
No description provided.