-
Notifications
You must be signed in to change notification settings - Fork 496
Diamond Pipe doesn't distinguish cables from ic2 #4553
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
Comments
I think the problem is here. if (base.getItem() != comparison.getItem()) {
return false;
} Somehow "Copper Cable" and "Insulated Copper Cable" have the same I've changed the condition, and now it works. if (!Objects.equals(base.getDisplayName(), comparison.getDisplayName())) {
return false;
} I know, it's not a good idea to compare items by name, but now we know where is the problem. |
For some reason ic2 stores insulated cable variants in NBT, rather than in the items metadata or as a different item, however the diamond pipe doesn't filter by NBT - instead you can use a list, and click the We don't filter by NBT by default because NBT is normally used for things with large variance - like written books, or the amount of liquid in a container, etc. For ic2 however it might make sense to compare the specific NBT tags that ic2 uses, as insulated cables should probably be sortable by default. (However that would need to go in compat somehow rather than in base BC). |
Thank you for the reference to a list. It was hard to find any info about the list and its usage with diamond pipes. If you don't mind, I want to try to fix the issue. My idea is to add some registry of comparison rules to the StackUtils. Other mods, like BuildCraftCompat, can use this registry to add their own rules. These rules can represent some "common sense comparison", like the difference between insulated and simple cables. |
Sure! |
what do you guys mean by "list"? |
I've finally released this fix in 7.99.24.7 - sorry for the delay. |
oh, i´ve never seen this "list item", neither this P-T-M buttons... im playing on 1.12.2 |
Steps to reproduce the behavior:
Expected: The "Copper Cable" must go out from the first pipe, and the "Insulated Copper Cable" - from the second pipe.
Actual: The items choose pipes randomly.
This also works with "Tin Cable".
The text was updated successfully, but these errors were encountered: