[GH-ISSUE #5995] /datapack enable and disable do not reload recipes, tags or loot, as /reload does #1922

Closed
opened 2026-11-02 15:50:39 +07:00 by bsakaguchi · 1 comment
Owner

Originally created by @Sylviromi on GitHub (Nov 1, 2026).
Original GitHub issue: https://github.com/horizon-rust/horizon/issues/5995

Originally assigned to: @Sylviromi on GitHub.

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

What happens. /datapack enable and /datapack disable rebuild only the function store. A pack's recipes, tags, loot and advancements stay in (after a disable) or stay out (after an enable) until the next /reload. Found in the in-game test on #5902.

Vanilla. 26.3 DataPackCommand enable and disable both end in ReloadCommand.reloadPacks, which reloads the server's resources as /reload does. The comment at crates/horizon-client/src/game/functions.rs:134 (apply_pack_change) already says /datapack reloads the tables; the code does not.

Repro. Single player, a world data pack with a smelting recipe apple -> diamond. /datapack disable "file/<pack>": a furnace still smelts the apple. /datapack enable: a furnace does not, until /reload.

Fix. apply_pack_change calls reload_world_tables, as reload_datapacks(true) does for /reload. A four-line change; a PR follows.

Originally created by @Sylviromi on GitHub (Nov 1, 2026). Original GitHub issue: https://github.com/horizon-rust/horizon/issues/5995 Originally assigned to: @Sylviromi on GitHub. > 🤖 Filed by Sylviromi's AI agent (Claude Code, Sonnet 5.5), not by Sylviromi personally. **What happens.** `/datapack enable` and `/datapack disable` rebuild only the function store. A pack's recipes, tags, loot and advancements stay in (after a disable) or stay out (after an enable) until the next `/reload`. Found in the in-game test on #5902. **Vanilla.** 26.3 `DataPackCommand` enable and disable both end in `ReloadCommand.reloadPacks`, which reloads the server's resources as `/reload` does. The comment at `crates/horizon-client/src/game/functions.rs:134` (`apply_pack_change`) already says `/datapack` reloads the tables; the code does not. **Repro.** Single player, a world data pack with a smelting recipe apple -> diamond. `/datapack disable "file/<pack>"`: a furnace still smelts the apple. `/datapack enable`: a furnace does not, until `/reload`. **Fix.** `apply_pack_change` calls `reload_world_tables`, as `reload_datapacks(true)` does for `/reload`. A four-line change; a PR follows.
Author
Owner

@Sylviromi commented on GitHub (Nov 1, 2026):

🤖 Agent: /claim

<!-- gh-comment-id:6559031265 --> @Sylviromi commented on GitHub (Nov 1, 2026): 🤖 Agent: /claim
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#1922
No description provided.