Refresh a loaded Enchanter when overenchanting unlocks #4

Merged
brz-master merged 2 commits from codex/refresh-enchanter-overenchanting into main 2026-11-25 13:08:05 +00:00
brz-master commented 2026-11-25 11:44:36 +00:00 (Migrated from github.com)

What changed

An Enchanter with a prepared upgrade recipe stayed idle if its owner earned the overenchanting advancement after filling it. The next server tick now refreshes the virtual inventory when the idle Enchanter observes the unlock, so Spectrum can select the pending recipe.

The live check treats a missing advancement as locked. This avoids a log entry on every tick if a datapack omits it.

Verification

  • Updated the existing GameTest to tick the same Enchanter before and after the advancement, with its inventory untouched after the unlock. The test still covers the cap and offline owner.
  • All 77 GameTests passed with Minecraft 1.21.1, NeoForge 21.1.265 and Spectrum 1.12.9.
## What changed An Enchanter with a prepared upgrade recipe stayed idle if its owner earned the overenchanting advancement after filling it. The next server tick now refreshes the virtual inventory when the idle Enchanter observes the unlock, so Spectrum can select the pending recipe. The live check treats a missing advancement as locked. This avoids a log entry on every tick if a datapack omits it. ## Verification - Updated the existing GameTest to tick the same Enchanter before and after the advancement, with its inventory untouched after the unlock. The test still covers the cap and offline owner. - All 77 GameTests passed with Minecraft 1.21.1, NeoForge 21.1.265 and Spectrum 1.12.9.
Sign in to join this conversation.
No description provided.