Fixed player stuck shooting in certain situations

This commit is contained in:
Anuken
2025-06-13 19:02:40 -04:00
parent a186b622f6
commit f4e8325238
2 changed files with 5 additions and 5 deletions

View File

@@ -430,10 +430,6 @@ public class DesktopInput extends InputHandler{
}
}
if(Core.input.keyRelease(Binding.select)){
player.shooting = false;
}
if(state.isGame() && !scene.hasDialog() && !scene.hasField()){
if(Core.input.keyTap(Binding.minimap)) ui.minimapfrag.toggle();
if(Core.input.keyTap(Binding.planetMap) && state.isCampaign()) ui.planet.toggle();
@@ -560,6 +556,10 @@ public class DesktopInput extends InputHandler{
changedCursor = false;
}
}
if(Core.input.keyRelease(Binding.select)){
player.shooting = false;
}
}
@Override