bte_optimization_fixes-1.31.0.jar
Curse Maven Snippet
What's new
Fix identical items not stacking because of a Damage: 0 tag
Some gold ingots, emeralds and other items carried an NBT tag
{Damage: 0}, so they no longer stacked with normal ones.
In 1.19.2 ItemStack.setDamageValue writes "Damage" into the NBT of any
item, even items without durability, so a mod calling setDamageValue(0)
on arbitrary items marks them for good.
For items without durability only (tools and armor are unchanged):
- setDamageValue(0) no longer creates NBT, and removes an existing
"Damage" key (0 is the default value).
- When an item is loaded (world, players, containers, mod storages) a
"Damage: 0" is removed and an empty NBT is dropped, so items already
marked in existing worlds stack again.
This mod has no additional files

