We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e41d8e8 commit 1c569cfCopy full SHA for 1c569cf
src/main/java/com/gregtechceu/gtceu/api/machine/multiblock/MultiblockControllerMachine.java
@@ -209,12 +209,7 @@ public void onStructureInvalid() {
209
*/
210
@Override
211
public void onPartUnload() {
212
- for (var it = parts.iterator(); it.hasNext();) {
213
- var part = it.next();
214
- if (part.self().isInValid()) {
215
- it.remove();
216
- }
217
+ parts.removeIf(part -> part.self().isInValid());
218
getMultiblockState().setError(MultiblockState.UNLOAD_ERROR);
219
if (getLevel() instanceof ServerLevel serverLevel) {
220
// If structure is formed, invalidate it immediately to update all parts' render states
0 commit comments