Skip to content

Fix #4553#4555

Merged
AlexIIL merged 1 commit intoBuildCraft:8.0.x-1.12.2from
ashlanderr:8.0.x-1.12.2-matching-items-registry
Apr 14, 2020
Merged

Fix #4553#4555
AlexIIL merged 1 commit intoBuildCraft:8.0.x-1.12.2from
ashlanderr:8.0.x-1.12.2-matching-items-registry

Conversation

@ashlanderr
Copy link
Copy Markdown
Contributor

It is a part of the fix. The second part will go to BuildCraftCompat. There will be a registration of NBT keys for ic2 cables.

Copy link
Copy Markdown
Member

@AlexIIL AlexIIL left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you change this to use a functional interface instead? That way we get more control over exactly what NBT tags (and subtags) are compared. (Likely with a method of areEqual(ItemStack a, ItemStack b, boolean matchDamage), where matchDamage is for comparing subtypes - for example your ic2 handler would only compare if this was true, as false is used for a fuzzy search (like in the list)).

(Although it's a bit trickier if you want to allow multiple people to register multiple comparators).

@AlexIIL AlexIIL linked an issue Apr 11, 2020 that may be closed by this pull request
@ashlanderr ashlanderr force-pushed the 8.0.x-1.12.2-matching-items-registry branch 2 times, most recently from 4d21f61 to 68db0b0 Compare April 13, 2020 12:13
@ashlanderr ashlanderr force-pushed the 8.0.x-1.12.2-matching-items-registry branch from 68db0b0 to 00efb55 Compare April 14, 2020 06:26
@ashlanderr
Copy link
Copy Markdown
Contributor Author

I already have created a branch in BuildCraftCompat with the second part of the fix. I will send a new PR when this PR will be merged.

@AlexIIL
Copy link
Copy Markdown
Member

AlexIIL commented Apr 14, 2020

Thanks!

@AlexIIL AlexIIL merged commit b6763a8 into BuildCraft:8.0.x-1.12.2 Apr 14, 2020
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

Successfully merging this pull request may close these issues.

Diamond Pipe doesn't distinguish cables from ic2

2 participants