
PatternHelper are changed by lock crafting.
Forever-178 opened this issue · 4 comments
Describe the bug
PatternHelper will be changed when crafting results return network in lock crafting mode.
Because method getPrimaryOutput
return the reference but copy. I recommend use unlockStack = pattern.getPrimaryOutput().copy();
in line 1164.
@zeng-github01
To Reproduce
- Build a simple me network and create a pattern with output item greater than 1.
- Submit this craft job and return result items one by one.
- Submit the craft job again. Crafting plan provides wrong statistic and me interface's
unlockStack
has wrong item count.
Other things
At first craft job, craft complete notice are show when first item insert to interface. It should be show after all item returns.
I see,i will fix it ASAP
I first learned C#, and I forgot that the two handle references differently. sorry
Fixed in #507.
@NotMyWing This issue is not closed with the PR