Fixed large beam node undershoot

This commit is contained in:
Anuken
2025-01-02 16:22:45 -05:00
parent 311a18d195
commit 7e645e0208
2 changed files with 2 additions and 2 deletions

View File

@@ -107,7 +107,7 @@ public class BeamNode extends PowerBlock{
@Override
public void changePlacementPath(Seq<Point2> points, int rotation, boolean diagonal){
if(!diagonal){
Placement.calculateNodes(points, this, rotation, (point, other) -> Math.max(Math.abs(point.x - other.x), Math.abs(point.y - other.y)) <= range);
Placement.calculateNodes(points, this, rotation, (point, other) -> Math.max(Math.abs(point.x - other.x), Math.abs(point.y - other.y)) <= range + size - 1);
}
}