diff --git a/core/src/mindustry/input/DesktopInput.java b/core/src/mindustry/input/DesktopInput.java index 311b6a123e..74f77dc604 100644 --- a/core/src/mindustry/input/DesktopInput.java +++ b/core/src/mindustry/input/DesktopInput.java @@ -482,6 +482,10 @@ public class DesktopInput extends InputHandler{ pollInputPlayer(); } + if(Core.input.keyRelease(Binding.select)){ + player.shooting = false; + } + if(!Core.scene.hasMouse() && !ui.minimapfrag.shown()){ Core.graphics.cursor(cursorType); changedCursor = cursorType != SystemCursor.arrow; @@ -860,10 +864,6 @@ public class DesktopInput extends InputHandler{ Call.rotateBlock(player, cursor.build, Core.input.axisTap(Binding.rotate) > 0); } } - - if(Core.input.keyRelease(Binding.select)){ - player.shooting = false; - } } @Override