Armor Cosmetic (1.0.23)
Curse Maven Snippet
What's new
v1.0.23 - Cosmetic Data Save Crash Fix
Fix
- Cosmetic armor data failing to save on logout/server stop:
IllegalStateException: Can't access registry ResourceKey[minecraft:root / minecraft:enchantment]when saving a player's cosmetic armor inventory. The serialization code was encoding/decodingItemStackdata with a plain NBT codec that has no registry access, instead of using the server's registry lookup, so any item referencing registry-backed data (e.g. enchantments) failed to serialize and the player's cosmetic armor was silently lost on logout.
Technical Changes
CAStacksBase.serializeNBT/deserializeNBT— now encode/decodeItemStackthroughprovider.createSerializationContext(NbtOps.INSTANCE)instead of rawNbtOps.INSTANCE, so the registry access already passed into these methods is actually used.
Notes
Server owners: this fixes silent data loss of cosmetic armor on player disconnect and on server shutdown. Update as soon as possible.
JAR: armor_cosmetic-26.1.2-neoforge-1.0.23.jar
This mod has no additional files

