[PR #7807] Drowned go-to-water goal only targets water blocks (#7632) #7837

Open
opened 2026-11-03 07:25:08 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/horizon-rust/horizon/pull/7807
Author: @ClickingMaster
Created: 11/2/2026
Status: 🔄 Open

Base: main ← Head: fix/slot7-a


📝 Commits (3)

  • 2635cca Drowned go-to-water goal only targets water blocks (#7632)
  • cdf83e5 Merge origin/main
  • 0cee614 Drowned go-to-water: doc the vanilla source

📊 Changes

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

View changed files

📝 crates/horizon-client/src/mobs/undead.rs (+57 -2)

📄 Description

🤖 Opened by ClickingMaster's AI agent (Claude Code, Claude Sonnet 5.5), not by ClickingMaster personally.

Fixes #7632

Cause: DrownedGoToWater::can_use in crates/horizon-client/src/mobs/undead.rs accepted any block holding water (kelp, seagrass, waterlogged blocks) as a target. Vanilla's DrownedGoToWaterGoal.getWaterPos only takes Blocks.WATER.

Fix: the target check compares the block name to minecraft:water.

Test: mobs::undead::go_to_water_tests::a_drowned_goes_to_water_blocks_not_kelp fills the area with kelp (no target) and with water (target). It passes with the fix (cargo test -p horizon-client-lib --no-default-features --lib go_to_water_tests).

Self-check

  • cargo fmt --all -- --check
  • cargo clippy -p horizon-client-lib --no-default-features --lib --tests -- -D warnings
  • cargo test -p horizon-client --no-default-features (706 passed; 4 ignored-by-default tests that fail without extra assets were not part of this change)
  • pr_ready.py not run: no ALSA headers

🤖 Generated with Claude Code


🔄 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/7807 **Author:** [@ClickingMaster](https://github.com/ClickingMaster) **Created:** 11/2/2026 **Status:** 🔄 Open **Base:** `main` ← **Head:** `fix/slot7-a` --- ### 📝 Commits (3) - [`2635cca`](https://github.com/horizon-rust/horizon/commit/2635cca1e54eddd8d68e3a257a4c615eda7c080d) Drowned go-to-water goal only targets water blocks (#7632) - [`cdf83e5`](https://github.com/horizon-rust/horizon/commit/cdf83e52b087ef2fadd9eb7cb0d96b33828cf0c4) Merge origin/main - [`0cee614`](https://github.com/horizon-rust/horizon/commit/0cee614b6dab812596bbf45a3b30b90bbbcd7cf4) Drowned go-to-water: doc the vanilla source ### 📊 Changes **1 file changed** (+57 additions, -2 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-client/src/mobs/undead.rs` (+57 -2) </details> ### 📄 Description > 🤖 Opened by ClickingMaster's AI agent (Claude Code, Claude Sonnet 5.5), not by ClickingMaster personally. Fixes #7632 **Cause:** `DrownedGoToWater::can_use` in `crates/horizon-client/src/mobs/undead.rs` accepted any block holding water (kelp, seagrass, waterlogged blocks) as a target. Vanilla's `DrownedGoToWaterGoal.getWaterPos` only takes `Blocks.WATER`. **Fix:** the target check compares the block name to `minecraft:water`. **Test:** `mobs::undead::go_to_water_tests::a_drowned_goes_to_water_blocks_not_kelp` fills the area with kelp (no target) and with water (target). It passes with the fix (`cargo test -p horizon-client-lib --no-default-features --lib go_to_water_tests`). **Self-check** - [x] `cargo fmt --all -- --check` - [x] `cargo clippy -p horizon-client-lib --no-default-features --lib --tests -- -D warnings` - [x] `cargo test -p horizon-client --no-default-features` (706 passed; 4 ignored-by-default tests that fail without extra assets were not part of this change) - [ ] pr_ready.py not run: no ALSA headers 🤖 Generated with [Claude Code](https://claude.com/claude-code) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
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#7837
No description provided.