[PR #1807] [MERGED] Flint and steel lights nether portals only in the Overworld and the Nether #3778

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

📋 Pull Request Information

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

Base: main ← Head: fix/no-nether-portal-in-the-end


📝 Commits (1)

  • a2fccf0 Flint and steel lights nether portals only in the Overworld and the Nether

📊 Changes

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

View changed files

📝 crates/horizon-client/src/game.rs (+5 -1)

📄 Description

🤖 Opened by Ludovic's AI agent (Claude), not by Ludovic himself.

What the player reported

.dezerx on Discord (#horizon-bugs, 2026-10-25, single player): "You can make a nether portal inside the End and even light it and go inside".

Vanilla rule

BaseFireBlock.onPlace creates the portal only when inPortalDimension(level): the Overworld or the Nether. In the End the fire just burns in the frame.

Cause

Horizon has two fire paths. The world code's base_fire_on_place (horizon-world level/hooks.rs, fire from dispensers, spreading, lava) already checked the dimension. The flint-and-steel / fire-charge path, Game::try_light_portal (game.rs), didn't. Every mode is affected: the server thread and LAN/dedicated servers run the same use_item code for their players.

Change

try_light_portal returns early outside the Overworld and the Nether.

Tested

  • Server thread: an obsidian frame (2×4 opening) lit with flint and steel in the End holds a fire, no portal (execute if block … fire passes, … nether_portal fails). The same frame in the Overworld becomes a portal.
  • In-frame runs the same function.

pr_ready (tools/pr_ready.py --quick on ludovics-mac-mini, against origin/main at 6a065fa48, 2 min 31 s)

Check Result
Scope ✅ 1 files, +5 −1
Cargo.lock ✅ unchanged
Public tree ✅
Python tests ➖ no Python change
rustfmt ✅ (3 s)
clippy ✅ (3 s)
tests: horizon-client ✅ 1236 passed (2 min 9 s)
doc tests ✅ 0 passed (1 s)
tokens.css up to date ➖ theme untouched
launcher rustfmt ➖ launcher untouched
launcher clippy ➖ launcher untouched
launcher tests ➖ launcher untouched
Parity ➖ 27 affected, to run in CI (--quick): arrow, block_particles, block_removal, breaking_model, command_exec, composter, crafter, dedicated_server, dispenser, enchanting, locator_bar, mace and 15 more
Label player-facing: feature if players get something new, no label for a fix (release-now if urgent)

Named harness (local): nether_portal PASS.

🤖 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/1807 **Author:** [@ludovic111](https://github.com/ludovic111) **Created:** 10/25/2026 **Status:** ✅ Merged **Merged:** 10/25/2026 **Merged by:** [@ludovic111](https://github.com/ludovic111) **Base:** `main` ← **Head:** `fix/no-nether-portal-in-the-end` --- ### 📝 Commits (1) - [`a2fccf0`](https://github.com/horizon-rust/horizon/commit/a2fccf0205c133ef871bb9a781dddac1cce52a6c) Flint and steel lights nether portals only in the Overworld and the Nether ### 📊 Changes **1 file changed** (+5 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-client/src/game.rs` (+5 -1) </details> ### 📄 Description > 🤖 Opened by Ludovic's AI agent (Claude), not by Ludovic himself. ## What the player reported .dezerx on Discord (#horizon-bugs, 2026-10-25, single player): "You can make a nether portal inside the End and even light it and go inside". ## Vanilla rule `BaseFireBlock.onPlace` creates the portal only when `inPortalDimension(level)`: the Overworld or the Nether. In the End the fire just burns in the frame. ## Cause Horizon has two fire paths. The world code's `base_fire_on_place` (horizon-world `level/hooks.rs`, fire from dispensers, spreading, lava) already checked the dimension. The flint-and-steel / fire-charge path, `Game::try_light_portal` (game.rs), didn't. Every mode is affected: the server thread and LAN/dedicated servers run the same `use_item` code for their players. ## Change `try_light_portal` returns early outside the Overworld and the Nether. ## Tested - Server thread: an obsidian frame (2×4 opening) lit with flint and steel in the End holds a fire, no portal (`execute if block … fire` passes, `… nether_portal` fails). The same frame in the Overworld becomes a portal. - In-frame runs the same function. **pr_ready** (`tools/pr_ready.py --quick` on ludovics-mac-mini, against origin/main at 6a065fa48, 2 min 31 s) | Check | Result | | --- | --- | | Scope | ✅ 1 files, +5 −1 | | Cargo.lock | ✅ unchanged | | Public tree | ✅ | | Python tests | ➖ no Python change | | rustfmt | ✅ (3 s) | | clippy | ✅ (3 s) | | tests: horizon-client | ✅ 1236 passed (2 min 9 s) | | doc tests | ✅ 0 passed (1 s) | | tokens.css up to date | ➖ theme untouched | | launcher rustfmt | ➖ launcher untouched | | launcher clippy | ➖ launcher untouched | | launcher tests | ➖ launcher untouched | | Parity | ➖ 27 affected, to run in CI (--quick): arrow, block_particles, block_removal, breaking_model, command_exec, composter, crafter, dedicated_server, dispenser, enchanting, locator_bar, mace and 15 more | | Label | player-facing: `feature` if players get something new, no label for a fix (`release-now` if urgent) | Named harness (local): nether_portal PASS. 🤖 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>
bsakaguchi 2026-11-03 04:12:14 +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#3778
No description provided.