Integrated Dynamics

Integrated Dynamics

63M Downloads

Materialized custom operator does not update value, while non materialized does

gtokarz opened this issue ยท 4 comments

commented

Issue type:

  • ๐Ÿ› Bug

Short description:

Steps to reproduce the problem:

  1. My custom operator filters recipe list by doing simple inventory contents comparision with recipe inputs and get first recipe. On the screenshots below I have 2 displays 1 have this operator non materialized second has it materialized. The moment items enters inventory only non materialized one updates, whilte I have to cause network update i.e via cable placement to get materialized one to update
    image
    image

Expected behaviour:

Materialized one should update as well

Versions:

  • This mod: 1.10.6, integrated crafting: 1.0.20, integrated tunnels: 1.8.9, integrated terminals: 1.2.11
  • Minecraft: 1.16.5
  • Forge: 36.2.22
commented

Small update, narrowed down the problem to this piece:
image
Input Items coming from proxy which has Inventory Reader Items in it from the chest. I have made 2 test variables:
apply(Item, IsCurrentInputItem) and apply(Item, MaterializedsCurrentInputItem), they behave differently (same as in initial report desc)

commented

Thanks for reporting!

commented

Minimal reproduction
Chest with Inventory Reader,
Proxy with Items read from chest

Variable 1: Operator: List Contains
Variable 2: Proxy Card
Variable 3: apply(Variable2, Variable1)
Variable 4: materialize(Variable3)
Variable 5: Item(Cobblestone)

TestValue1: apply(Variable5, Variable3)
TestValue2: apply(Variable5, Variable4)
image

image

Also I have noticed that eventually materialized test value swtiches to correct one, but after over 1min or so (not sure what caused it)

commented

So actually the expectation is wrong here.
Since you're materializing a list, it should actually always remain static.
The fact that it sometimes changes is actually a bug. Will fix that in a bit.