Skip to content
This repository has been archived by the owner on Mar 8, 2024. It is now read-only.

Commit

Permalink
Fix length calculation for CAL (#379)
Browse files Browse the repository at this point in the history
* Fix length calculation for CAL

Since multiblock stacrts checking with PIECE_FIRST and than continue with PIECE_NEXT its length is amount of PIECE_NEXT + 1(first piece)

* spotlessApply (#380)

Co-authored-by: GitHub GTNH Actions <>

---------

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
  • Loading branch information
LewisSaber and github-actions[bot] authored Dec 16, 2023
1 parent 9f6ccea commit 71c71e3
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -437,7 +437,7 @@ private boolean checkMachine(boolean leftToRight) {
if (!this.checkPiece(STRUCTURE_PIECE_NEXT, leftToRight ? -i : i, 0, 0)) {
return false;
}
length = i;
length = i + 1;

if (!this.mOutputBusses.isEmpty()) {
return this.mEnergyHatches.size() == 1 && this.mMaintenanceHatches.size() == 1;
Expand Down

0 comments on commit 71c71e3

Please sign in to comment.