Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Shields break like vanilla tools #5323

Open
TerravoltPrime opened this issue Jan 25, 2025 · 2 comments
Open

Shields break like vanilla tools #5323

TerravoltPrime opened this issue Jan 25, 2025 · 2 comments
Labels
1.20 Issue affects 1.20 Bug Issue describes unintended or broken behavior Confirmed Issue has been verified as being caused by Tinkers, or an enhancement is planned to be added Forge Issue is caused by Forge or a Forge issue describes this issue. Resolution is often delayed. NeoForge Issue is caused by Neo or a missing feature in Neo. Resolved Issue is fixed in code, but there is not a release with that fix yet.

Comments

@TerravoltPrime
Copy link

Minecraft Version

1.20.1

Modloader

Forge

Modloader Version

47.3.22

Mantle Version

1.11.36

Tinkers' Construct Version

3.1.9.1.19

Describe your issue

plate shields break when durability reaches zero like vanilla tools. (traveler's shield too)

Crash Report

No response

Other mods

None

Tried reproducing with just Tinkers?

Yes

Performance Enchancers

None of the above

Searched for known issues?

I did not search

@TerravoltPrime TerravoltPrime added 1.20 Issue affects 1.20 Bug Issue describes unintended or broken behavior Unreviewed Issue is new and is awaiting the team to review it labels Jan 25, 2025
@KnightMiner
Copy link
Member

Looked into this issue, it is caused by my fix for a different shield bug that we had previously just installed a workaround in tinkers. I reported it to Forge at MinecraftForge/MinecraftForge#10344, and confirmed this only affects 1.20.1 Tinkers (1.19.3 is when the patch was introduced, and the relevant code is missing since 1.20.6).

I am not sure of a good workaround yet, I have a few ideas but they all have negative side-effects. A workaround may be needed if we wish to maintain NeoForge compatibility though, as only Forge is still supported on 1.20.1.

@KnightMiner KnightMiner added Forge Issue is caused by Forge or a Forge issue describes this issue. Resolution is often delayed. Confirmed Issue has been verified as being caused by Tinkers, or an enhancement is planned to be added NeoForge Issue is caused by Neo or a missing feature in Neo. and removed Unreviewed Issue is new and is awaiting the team to review it labels Jan 25, 2025
@KnightMiner
Copy link
Member

Digging into this more, seems Forge has a nicely placed event that lets me bypass vanilla shield damage code entirely, so that will give me a fix for this without losing Neo compat.

Bug fix on Forge's side is still valuable for any mods not using the event, I just happened to already have a listener in place that was processing tool stacks so it saves another tool stack creation.

@KnightMiner KnightMiner added the Resolved Issue is fixed in code, but there is not a release with that fix yet. label Jan 26, 2025
KnightMiner added a commit that referenced this issue Jan 26, 2025
…leted when broken

Workaround for #5323
Also fixes MC-168573 should we backport this to 1.19.2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
1.20 Issue affects 1.20 Bug Issue describes unintended or broken behavior Confirmed Issue has been verified as being caused by Tinkers, or an enhancement is planned to be added Forge Issue is caused by Forge or a Forge issue describes this issue. Resolution is often delayed. NeoForge Issue is caused by Neo or a missing feature in Neo. Resolved Issue is fixed in code, but there is not a release with that fix yet.
Projects
None yet
Development

No branches or pull requests

2 participants