Immersive Intelligence

Immersive Intelligence

2M Downloads

[BUG] Advanced inserter item filtering is not possible due to incorrect mode handling

Hawk777 opened this issue ยท 0 comments

commented

Describe the bug
It is not possible to use the item stack filtering functionality of an advanced inserter. According to the documentation, filterMode (set by variable f) should be one of none, whitelist, or blacklist; while filterItemMode (set by variable g) should be one of exact, item, or oredict. However, in canTakeItem, on line 780, you check whether filterItemMode is equal to whitelist or blacklist, rather than filterMode. It is impossible for filterItemMode to be equal to both one of exact, item, or oredict and also one of whitelist or blacklist; therefore, the filter will never pass and the advanced inserter can only ever be used without filtering.

Environment

  • OS: Linux
  • Minecraft version: 1.12.2
  • Forge version: 14.23.5.2854
  • Immersive Intelligence version: 0.1.1
  • Immersive Engineering version: 0.12-98