Fix error in loop logic in Matter scanner
This commit is contained in:
parent
1dd57065c9
commit
9038003f2f
@ -119,7 +119,7 @@ class MatterScannerBlockEntity(p_155229_: BlockPos, p_155230_: BlockState) :
|
||||
var findState: PatternState? = null
|
||||
|
||||
for (state in matterNode.graph.patterns.filter { it.item === stack.item }) {
|
||||
if (state.researchPercent < 1.0) {
|
||||
if (state.researchPercent < 1.0 && findState == null) {
|
||||
findState = state
|
||||
} else if (state.researchPercent >= 1.0) {
|
||||
return JobContainer.noItem()
|
||||
|
Loading…
Reference in New Issue
Block a user