Skip to content

Commit 0dfe9b9

Browse files
authored
Fix CME with parts and partpositions when calling getParts in addedToController (#4505)
1 parent 388e468 commit 0dfe9b9

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/main/java/com/gregtechceu/gtceu/api/machine/multiblock/MultiblockControllerMachine.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,13 +187,13 @@ public void onStructureFormed() {
187187
}
188188
}
189189
this.parts.sort(getPartSorter());
190+
updatePartPositions();
190191
for (var part : parts) {
191192
if (part instanceof IParallelHatch pHatch) {
192193
parallelHatch = pHatch;
193194
}
194195
part.addedToController(this);
195196
}
196-
updatePartPositions();
197197
}
198198

199199
@Override

0 commit comments

Comments
 (0)