Skip to content

Commit

Permalink
check path endpoint sanely
Browse files Browse the repository at this point in the history
  • Loading branch information
thiakil committed Sep 1, 2024
1 parent b9186ef commit 297d2a7
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,7 @@ public boolean calculateIdle(LogisticalTransporterBase transporter) {
}

public boolean isFinal(LogisticalTransporterBase transporter) {
return pathToTarget.indexOf(transporter.getBlockPos().asLong()) == (getPathType().hasTarget() ? 1 : 0);
return transporter.getWorldPositionLong() == pathToTarget.get(getPathType().hasTarget() ? 1 : 0);
}

//TODO - 1.20.5: Re-evaluate this method
Expand Down

0 comments on commit 297d2a7

Please sign in to comment.