[PR #2943] [MERGED] Skip mod recipe tables until the world resources are loaded #4698

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

📋 Pull Request Information

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

Base: main ← Head: fix/2928-mod-recipes-before-world-rest


📝 Commits (1)

  • 47ca031 Skip mod recipe tables until the world resources are loaded

📊 Changes

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

View changed files

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

📄 Description

What and why

On a slow start the title screen is drawn while the world resources (items, recipes, stations) are still loading on the world-rest-loader thread. A running mod that reads recipes makes mods_frame build the recipe tables on every title frame, and make_mod_recipes called items() before the resources were set, which panicked with "world resources joined before entry".

The recipe tables now stay empty until the world resources are loaded. The mod only reads recipes once a player is in a world, and world entry already waits for the resources, so nothing changes once loading is done.

Fixes #2928

Vanilla reference

Horizon-only (startup resource loading).

Self-check

clippy and fmt pass for horizon-client with --features horizon-client/mods. Not run in game.


🔄 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/2943 **Author:** [@kacpherek](https://github.com/kacpherek) **Created:** 10/27/2026 **Status:** ✅ Merged **Merged:** 10/28/2026 **Merged by:** [@rdbtCVS](https://github.com/rdbtCVS) **Base:** `main` ← **Head:** `fix/2928-mod-recipes-before-world-rest` --- ### 📝 Commits (1) - [`47ca031`](https://github.com/horizon-rust/horizon/commit/47ca0312df721385058e8a7247076bd60f113ebf) Skip mod recipe tables until the world resources are loaded ### 📊 Changes **1 file changed** (+3 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-client/src/game/mod_recipes.rs` (+3 -1) </details> ### 📄 Description ## What and why On a slow start the title screen is drawn while the world resources (items, recipes, stations) are still loading on the `world-rest-loader` thread. A running mod that reads recipes makes `mods_frame` build the recipe tables on every title frame, and `make_mod_recipes` called `items()` before the resources were set, which panicked with "world resources joined before entry". The recipe tables now stay empty until the world resources are loaded. The mod only reads recipes once a player is in a world, and world entry already waits for the resources, so nothing changes once loading is done. Fixes #2928 ## Vanilla reference Horizon-only (startup resource loading). ## Self-check clippy and fmt pass for horizon-client with `--features horizon-client/mods`. Not run in game. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-03 05:07:16 +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#4698
No description provided.