From 6ba1cd3ef6e00929785d803b39e05786096f3823 Mon Sep 17 00:00:00 2001 From: Anuken Date: Mon, 19 Jun 2023 18:44:16 -0400 Subject: [PATCH] Fixed #8732 --- core/src/mindustry/ai/ControlPathfinder.java | 4 ---- core/src/mindustry/input/MobileInput.java | 2 +- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/core/src/mindustry/ai/ControlPathfinder.java b/core/src/mindustry/ai/ControlPathfinder.java index d2e74f9825..8dd4a37836 100644 --- a/core/src/mindustry/ai/ControlPathfinder.java +++ b/core/src/mindustry/ai/ControlPathfinder.java @@ -7,7 +7,6 @@ import arc.math.*; import arc.math.geom.*; import arc.struct.*; import arc.util.*; -import mindustry.content.*; import mindustry.core.*; import mindustry.game.EventType.*; import mindustry.game.*; @@ -286,9 +285,6 @@ public class ControlPathfinder{ float angleToDest = unit.angleTo(tile); //force recalculate when the unit moves backwards if(Angles.angleDist(angleToNext, angleToDest) > 80f && !unit.within(tile, 1f)){ - if(showDebug){ - Fx.placeBlock.at(unit, 1f); - } req.forceRecalculate(); } } diff --git a/core/src/mindustry/input/MobileInput.java b/core/src/mindustry/input/MobileInput.java index 295ab851e9..5551325616 100644 --- a/core/src/mindustry/input/MobileInput.java +++ b/core/src/mindustry/input/MobileInput.java @@ -201,7 +201,7 @@ public class MobileInput extends InputHandler implements GestureListener{ //rotate button table.button(Icon.right, Styles.clearNoneTogglei, () -> { - if(block != null && block.rotate && block.quickRotate){ + if(block != null && block.rotate){ rotation = Mathf.mod(rotation + 1, 4); }else{ schematicMode = !schematicMode;