BuildCraft|Core

BuildCraft|Core

7M Downloads

BC 7.1.20 AutoWorkbench Dupe (NBT checking)

TheAndrey opened this issue ยท 4 comments

commented

AutoWorkbench does not compare NBT items.
https://www.youtube.com/watch?v=rfqad_-kMmY&t=2m26s

I fixed it activating the check here: https://github.com/BuildCraft/BuildCraft/blob/7.1.x/common/buildcraft/factory/TileAutoWorkbench.java#L340

Why don't you use ItemStack.areItemStackTagsEqual() in here?
https://github.com/BuildCraft/BuildCraft/blob/7.1.x/common/buildcraft/core/lib/inventory/StackHelper.java#L205-L207
If the first item is missing NBT, it will return true, which is not good.

commented

is this the case for 8.0.x as well @AlexIIL ?

commented

Ouch! Thanks, @TheAndrey !

commented

@AlexIIL 8.0.x should use areItemStackTagsEqual as that also checks capabilities!

commented

Still works for me on 7.1.23