Skip to content

Commit

Permalink
Fixed bridge placement annoyance
Browse files Browse the repository at this point in the history
  • Loading branch information
Anuken committed Oct 28, 2024
1 parent bbff564 commit a7cad98
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/src/mindustry/input/Placement.java
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ public static void calculateBridges(Seq<BuildPlan> plans, ItemBridge bridge, Boo

Boolf<BuildPlan> placeable = plan ->
(plan.placeable(player.team()) || (plan.tile() != null && plan.tile().block() == plan.block)) && //don't count the same block as inaccessible
!(plan.build() != null && plan.build().rotation != plan.rotation && avoid.get(plan.tile().block()));
!(plan != plans.first() && plan.build() != null && plan.build().rotation != plan.rotation && avoid.get(plan.tile().block()));

var result = plans1.clear();
var rotated = plans.first().tile() != null && plans.first().tile().absoluteRelativeTo(plans.peek().x, plans.peek().y) == Mathf.mod(plans.first().rotation + 2, 4);
Expand Down

0 comments on commit a7cad98

Please sign in to comment.