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

1.12.2 - Item with Forge Capability cannot be inserted #51

Open
AnodeCathode opened this issue Jun 19, 2020 · 0 comments
Open

1.12.2 - Item with Forge Capability cannot be inserted #51

AnodeCathode opened this issue Jun 19, 2020 · 0 comments

Comments

@AnodeCathode
Copy link

AnodeCathode commented Jun 19, 2020

Attempting to add recipes with Terrafirmacraft 1.12.2 to grind TFC grains into their equivalent flour. All food items in TFC have a Forge Capability to track their creation date and thus when they should decay into in-edibleness. Because of this I cannot insert the grains into the Grindstone as the Items in hand fail the comparison to the recipe.

I did make it work by changing the Utils.getItemStackHashCode to strip out the ForgeCaps nbt and then again in ComparableItemStack, by changing ItemStack.areItemStackTagsEqual(stack, that.stack) to this.hashCode() == that.hashCode(). I don't know if that an ideal solution but I was trying to figure out why it was failing.

Would love to have this work with the TFC food items. There are olives to press, grain to grind, minerals to crush. Anything without capability data works fine. But the foods just can't be inserted into the machine. Doesn't matter if I set a wildcard or not, as that's not where the comparison was failing.

Let me know if you need any further information.

Forge version: forge-1.12.2-14.23.5.2847
TFC version: terrafirmacraft-mc1.12-1.4.0.149
Horsepower version: horsepower-1.12.2-2.6.4.74

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

1 participant