Equivalent Legacy (1.6.6)
Curse Maven Snippet
What's new
v1.6.6 - Fix world save crash with empty EMC items
Bugfix release for Minecraft 26.2. No feature changes.
Fixed
- The server crashed while saving (
Saving entity NBT/Value must be positive: 0) when a player carried an item whose stored EMC, stored experience or unprocessed EMC was exactly0— for example Gem Armor, a Destruction Catalyst or a Gem of Eternal Density with an empty charge. The codecs for these data components only accepted values above zero, even though zero is their normal "empty" state. They now accept any non-negative value, so empty items save and load correctly.
Technical Changes
DataComponentTypeDeferredRegister—registerNonNegativeInt/Long/Doublenow useExtraCodecs.NON_NEGATIVE_INTandval >= 0validators instead of strictly positive ones. Affectsequivalent_legacy:stored_emc,stored_expandunprocessed_emc.
Notes
No world data was corrupted by the crash: the failing save was never written. Same fix shipped for 1.21.1 as 1.1.1.
JAR: equivalent_legacy-26.2-neoforge-26.2.0.57-1.6.6.jar
All Relations
- All Relations
- Embedded Library
- Optional Dependency
- Required Dependency
- Tool
- Incompatible
- Include