[PR #2316] [MERGED] Campfires are no Container for droppers and hoppers #4198

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

📋 Pull Request Information

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

Base: main ← Head: fix/campfire-not-a-container


📝 Commits (1)

  • 1825b39 Campfires are no Container for droppers and hoppers

📊 Changes

2 files changed (+9 additions, -2 deletions)

View changed files

📝 crates/horizon-client/src/game/dispense_fixture.rs (+5 -0)
📝 crates/horizon-client/src/game/machines.rs (+4 -2)

📄 Description

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

What and why

dispenser and block_removal fail on main since #2015 ("Campfires cook food") gave campfires a modelled block entity. #2015 came from a fork, so CI didn't run parity on it, and my gate's targeted list didn't include these two harnesses.

  • game/machines.rs treated any block entity as a container. A campfire became a zero-slot container, so a dropper facing it kept its item instead of dropping it in front. Vanilla's HopperBlockEntity.getContainerAt finds no Container there. Campfires are now left out, as beehives already were. That also keeps hoppers off them.
  • game/dispense_fixture.rs filled a campfire's items through the generic slots, which a campfire doesn't have, so block_removal's campfires were empty and dropped nothing. The fixture now fills Campfire::items.

Testing

main (21a89c2e7) this PR
block_removal 3821/4000 (179 campfire cases) 4000/4000
dispenser 5997/6000 (3 droppers facing a campfire) 6000/6000

block_entity_tickers, crafter and composter still pass. rustfmt and clippy -D warnings are clean.

🤖 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/2316 **Author:** [@ludovic111](https://github.com/ludovic111) **Created:** 10/26/2026 **Status:** ✅ Merged **Merged:** 10/26/2026 **Merged by:** [@ludovic111](https://github.com/ludovic111) **Base:** `main` ← **Head:** `fix/campfire-not-a-container` --- ### 📝 Commits (1) - [`1825b39`](https://github.com/horizon-rust/horizon/commit/1825b3991cae222b6aac29951b5542abfb7c7f8a) Campfires are no Container for droppers and hoppers ### 📊 Changes **2 files changed** (+9 additions, -2 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-client/src/game/dispense_fixture.rs` (+5 -0) 📝 `crates/horizon-client/src/game/machines.rs` (+4 -2) </details> ### 📄 Description > 🤖 Opened by Ludovic's AI agent (Claude), not by Ludovic himself. ## What and why `dispenser` and `block_removal` fail on main since #2015 ("Campfires cook food") gave campfires a modelled block entity. #2015 came from a fork, so CI didn't run parity on it, and my gate's targeted list didn't include these two harnesses. - `game/machines.rs` treated any block entity as a container. A campfire became a zero-slot container, so a dropper facing it kept its item instead of dropping it in front. Vanilla's `HopperBlockEntity.getContainerAt` finds no `Container` there. Campfires are now left out, as beehives already were. That also keeps hoppers off them. - `game/dispense_fixture.rs` filled a campfire's items through the generic slots, which a campfire doesn't have, so `block_removal`'s campfires were empty and dropped nothing. The fixture now fills `Campfire::items`. ## Testing | | main (21a89c2e7) | this PR | |---|---|---| | `block_removal` | 3821/4000 (179 campfire cases) | 4000/4000 | | `dispenser` | 5997/6000 (3 droppers facing a campfire) | 6000/6000 | `block_entity_tickers`, `crafter` and `composter` still pass. rustfmt and clippy `-D warnings` are clean. 🤖 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:15:24 +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#4198
No description provided.