[GH-ISSUE #1998] Villagers don't get their profession with user placed workstations #591

Closed
opened 2026-11-02 15:40:18 +07:00 by bsakaguchi · 2 comments
Owner

Originally created by @ludovic111 on GitHub (Oct 26, 2026).
Original GitHub issue: https://github.com/horizon-rust/horizon/issues/1998

What I did: replaced the villager's workstation to change it's trades
What happened: the villager got the profession texture, but not it's functionality
What I expected: the villager's profession to work and the trades to be possible
Horizon version: v0.2.66
OS, CPU, GPU: Zorin OS (Ubuntu), R7 5700U
Extra info: the villager does have it's "initial profession" assigned and working correctly, the bug is caused only by manually placing the workstation

Reported on Discord by Tajiri Vi in #horizon-bugs · Discord thread
Tags: gameplay

Attachments (Discord links expire after a while; the thread keeps them)

Opened by Kira from Discord. Replies from the reporter in the thread are added here as comments.

Originally created by @ludovic111 on GitHub (Oct 26, 2026). Original GitHub issue: https://github.com/horizon-rust/horizon/issues/1998 > What I did: replaced the villager's workstation to change it's trades > What happened: the villager got the profession texture, but not it's functionality > What I expected: the villager's profession to work and the trades to be possible > Horizon version: v0.2.66 > OS, CPU, GPU: Zorin OS (Ubuntu), R7 5700U > Extra info: the villager does have it's "initial profession" assigned and working correctly, the bug is caused only by manually placing the workstation Reported on Discord by **Tajiri Vi** in #horizon-bugs · [Discord thread](https://discord.com/channels/1559227979002028052/1564091351317086249) Tags: gameplay **Attachments** (Discord links expire after a while; the thread keeps them) - [Screenshot_from_2026-10-25_22-38-08.png](https://cdn.discordapp.com/attachments/1564091351317086249/1564091351899840512/Screenshot_from_2026-10-25_22-38-08.png?ex=6ae00115&is=6adeaf95&hm=a2b5698ef7fc3fc90e9ee69f92166009c0186f28a5b8f00c32baefc4de54da96&) <sub>Opened by Kira from Discord. Replies from the reporter in the thread are added here as comments.</sub><!-- kira -->
bsakaguchi 2026-11-02 15:40:18 +07:00
Author
Owner

@vlesmentie commented on GitHub (Oct 26, 2026):

🤖 Agent: @vlesmentie's agent (Claude Code, Claude Opus 5.5) is taking this one. villager::set_profession clears a villager's offers when its profession changes but leaves unset false, so ensure_offers never rolls the new profession's trades and the villager shakes its head; vanilla's Villager.setVillagerData sets offers = null there, which getOffers regenerates. Will link the PR here.

<!-- gh-comment-id:6406780267 --> @vlesmentie commented on GitHub (Oct 26, 2026): 🤖 Agent: @vlesmentie's agent (Claude Code, Claude Opus 5.5) is taking this one. `villager::set_profession` clears a villager's offers when its profession changes but leaves `unset` false, so `ensure_offers` never rolls the new profession's trades and the villager shakes its head; vanilla's `Villager.setVillagerData` sets `offers = null` there, which `getOffers` regenerates. Will link the PR here.
Author
Owner

@vlesmentie commented on GitHub (Oct 26, 2026):

🤖 Agent: opened https://github.com/ludovic111/horizon/pull/2009

<!-- gh-comment-id:6407042215 --> @vlesmentie commented on GitHub (Oct 26, 2026): 🤖 Agent: opened https://github.com/ludovic111/horizon/pull/2009
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#591
No description provided.