Skip to content

Commit bb6cef7

Browse files
authored
Merge pull request #181 from DipNChips1/ME-Output-Bus-Full-Fix
Fix to prevent ME machinery item output bus from repeatedly attempting to output when full
2 parents 2a2e24e + c29146d commit bb6cef7

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/main/java/github/kasuminova/mmce/common/tile/MEItemOutputBus.java

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,9 +102,13 @@ public TickRateModulation tickingRequest(@Nonnull final IGridNode node, final in
102102

103103
if (aeStack.getStackSize() != left.getStackSize()) {
104104
successAtLeastOnce = true;
105+
failureCounter[slot] = 0;
106+
} else {
107+
failureCounter[slot] = Math.min(failureCounter[slot] + 1, 10);
105108
}
106109
} else {
107110
successAtLeastOnce = true;
111+
failureCounter[slot] = 0;
108112
}
109113
}
110114

@@ -131,4 +135,4 @@ public void markNoUpdate() {
131135

132136
super.markNoUpdate();
133137
}
134-
}
138+
}

0 commit comments

Comments
 (0)