Skip to content

Load books on first open#846

Open
Mqrius wants to merge 1 commit into
VazkiiMods:1.20.1from
Mqrius:1.20.1
Open

Load books on first open#846
Mqrius wants to merge 1 commit into
VazkiiMods:1.20.1from
Mqrius:1.20.1

Conversation

@Mqrius
Copy link
Copy Markdown

@Mqrius Mqrius commented Mar 14, 2026

What

Fixes #845

Bug Details

Initial book loading is gated by ClientAdvancements::onClientPacket to prevent "excessive toast spam", as explained by the comment on that method.

However, when no advancements are registered or no advancements are achieved yet by the player, this never loads the books.

Fix Details

If the books are unloaded at the moment of the player opening the book, then reload the books first.

We do still want to load the books when the first advancements package arrives, because we need to check if we need to toast, so both paths still exist and use a shared source of truth.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant