
Robot Arm Keep Exact + Item Filter + Ignore NBT breaks Ignore NBT Rules
Closed this issue ยท 1 comments
Checked for existing issues
- I have checked for existing issues, and have found none.
Tested latest version
- I have checked that this occurs on the latest version.
GregTech CEu Version
7.1.3
Minecraft Version
1.20.1 Forge
Recipe Viewer Installed
EMI
Environment
Singleplayer
Cross-Mod Interaction
No
Other Installed Mods
Ad Astra
Botarium
EMI
Firmalife
GregTech
Patchouli
Resourceful Lib
Resourcefulconfig
TerraFirmaCraft
Expected Behavior
Ignore NBT setting applies globally to ALL comparisons.
In example below: One gold shovel is moved to right crate.
Actual Behavior
Ignore NBT is handled correctly when the item (ex shovel with durability) is checked against the filter in the robot arm, but NOT when the robot arm tries to move items between inventories. This results in more items getting put in the output inventory than the keep exact filter would normally allow.
In the example below if 4 different durability shovels are placed in the left crate, the filter in the robot arm sees them all as the same item (as expected). However, the keep exact logic sees them as 4 different items (unexpected behavior) and therefore apply the keep exact count to each item individually.
Steps to Reproduce
Setup:

Left Crate: Conveyor module on export. No other config.
Right Cover: Robot arm:

- Ignore NBT
- Item filter: Gold shovel with 31 uses left
- Mode on keep exact
- Place gold shovels with different durability in left crate
- Multiple shovels are moved to right crate
Additional Information
No response
I found the cause and made a fix:
9093f92