Skip to content

Commit

Permalink
Fixed large beam node undershoot
Browse files Browse the repository at this point in the history
  • Loading branch information
Anuken committed Jan 2, 2025
1 parent 311a18d commit 7e645e0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion core/src/mindustry/world/blocks/power/BeamNode.java
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ public void drawPlace(int x, int y, int rotation, boolean valid){
@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);
}
}

Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,4 @@ org.gradle.caching=true
org.gradle.internal.http.socketTimeout=100000
org.gradle.internal.http.connectionTimeout=100000
android.enableR8.fullMode=false
archash=ae657a7db3
archash=124ba82104

0 comments on commit 7e645e0

Please sign in to comment.