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

Tinker's Construct Issue: Insulation disappears from plate armor on repair #444

Closed
NevadaActual opened this issue Jan 17, 2025 · 5 comments

Comments

@NevadaActual
Copy link

As the title says. Unsure whether it's a fix needed on the Cold Sweat side of things or the TC side of things, so I'm opening an issue on both githubs to try and figure that out. It is an alpha TC release though, so it may just be that no real fix can be implemented at the moment.

What is interesting is that the TC item preview shows the insulation during the repair, but the moment materials are spent the insulation disappears. So that might narrow down where the incompatibility lies.

@NevadaActual
Copy link
Author

SlimeKnights/TinkersConstruct#5310 Crosslinking the Tinker's Construct issue.

@MikulDev
Copy link
Collaborator

MikulDev commented Jan 17, 2025

If I'm not mistaken, this is a TConstruct issue. Capability data ("capabilities" are what mods use to store data on Vanilla objects) should be preserved when repairing the item.

@NevadaActual
Copy link
Author

Cool cool, I'll mark this as closed for the moment then. Thank you for the help! Hopefully the TConstruct devs will have a solution.

@KnightMiner
Copy link

KnightMiner commented Jan 19, 2025

Item stack capabilities are completely overkill on item stacks for storage. Item stacks have a freely editable compound tag already that gives you way more compatibility with other mod. This is the first mod I've seen use item stack caps for item storage on another mods items.

I can look into supporting it, but odds are its not going to be practical as we just don't work with ItemStack the majority of the time for tools as raw NBT manipulation is just bad practice. I'll see if there is a way to keep the cap data but knowing forge its going to be a pain to access.

@MikulDev
Copy link
Collaborator

MikulDev commented Jan 19, 2025

I used NBT in previous versions, but insulation is really too dynamic for NBT to be practical. There are types of insulation that adapt to the environment, and insulation can also carry item/entity predicates that determine whether it will apply to the player. Serializing/deserializing this data every time it needs to be accessed is simply too unruly. It also degrades performance.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants