ShayBox / Durability101

A rewrite of the original Durability101 mod
https://curseforge.com/minecraft/mc-mods/durability101
MIT License
5 stars 5 forks source link

Durability numbers are visible through tooltips. #7

Closed AliahX closed 5 months ago

AliahX commented 2 years ago

title

ShayBox commented 2 years ago

Yeah, same as #3, I can't fix it, the game keeps track of the Z layer in an incremental variable that I can't reasonable get access to, so I just have to enter a static value that works with the vanilla testing, but other mods offset this number, different versions of the game change this number, it's unreliable, but there's just no good way to fix it without rewriting the mod to use Sponge mixins

ZephaniahNoah commented 1 year ago

Can you access the z layer value with reflection? Or are mixins the only way?

ShayBox commented 1 year ago

There's probably a way but I don't know how, I might remake all versions of the mod one day using mixins now that they're supported for every version, that would allow me to add some features and a config

ShayBox commented 5 months ago

The latest versions of Forge use their new Decorators API, which solves this issue, and I will be switching the latest versions of Fabric to their similarly new API.