File Details
arcadia-pets-1.2.7
- R
- Apr 29, 2026
- 524.74 KB
- 61
- 1.21.1
- NeoForge
File Name
arcadia-pets-1.2.7.jar
Supported Versions
- 1.21.1
Curse Maven Snippet
## [1.2.7] - 2026-04-28 (latest)
### Fixed
- **Pet HUD widget kept showing the old name after a second rename** — `PetManager.handleRename` updated `activePetData` / `pocketPets`, refreshed the pocket-pet S2C packet and the live mob's nameplate, but never pushed an `S2CPetHpSync` packet. Since `ClientPetState.petName` (the source the HUD widget next to the minimap reads from) is only refreshed on HP-sync packets, the new name only appeared on the HUD when the next regen tick (~30 s) or another HP sync happened to fire. A player renaming twice in quick succession would see the second name applied on the panel, the entity nameplate and the pocket render — but not on the HUD. Now `handleRename` ends with an explicit `sendHpSync` (entity-mode uses the live mob's HP, pocket-mode uses cached `pocketHp`), so the HUD picks up the new name immediately.
### Correctifs
- **Le widget HUD pet conservait l'ancien nom après un deuxième renommage** — `PetManager.handleRename` mettait à jour `activePetData` / `pocketPets`, rafraîchissait le packet S2C pocket-pet et la plaque du mob vivant, mais n'envoyait jamais de packet `S2CPetHpSync`. Comme `ClientPetState.petName` (la source que lit le widget HUD à côté de la minimap) n'est rafraîchi que sur les packets HP sync, le nouveau nom n'apparaissait sur le HUD qu'au prochain tick de regen (~30 s) ou à une autre sync HP. Un joueur qui renommait deux fois rapidement voyait le second nom appliqué sur le panneau, la plaque d'entité et le rendu pocket — mais pas sur le HUD. Maintenant `handleRename` se termine par un `sendHpSync` explicite (mode entité utilise les HP du mob vivant, mode pocket utilise `pocketHp` en cache), donc le HUD récupère le nouveau nom immédiatement.

