mirror of
https://github.com/TeamMidnightDust/MidnightControls.git
synced 2025-12-13 23:25:10 +01:00
fix: attack key not working properly for mobs
This commit is contained in:
@@ -28,7 +28,7 @@ public interface PressAction {
|
|||||||
if (action == ButtonState.REPEAT || client.currentScreen != null)
|
if (action == ButtonState.REPEAT || client.currentScreen != null)
|
||||||
return false;
|
return false;
|
||||||
button.asKeyBinding().ifPresent(binding -> {
|
button.asKeyBinding().ifPresent(binding -> {
|
||||||
if (binding instanceof StickyKeyBinding)
|
if (binding instanceof StickyKeyBinding && binding != client.options.attackKey) // TODO: Properly fix sticky keys so the attack key doesn't need to be a hardcoded exception
|
||||||
binding.setPressed(button.isPressed());
|
binding.setPressed(button.isPressed());
|
||||||
else
|
else
|
||||||
((KeyBindingAccessor) binding).midnightcontrols$handlePressState(button.isPressed());
|
((KeyBindingAccessor) binding).midnightcontrols$handlePressState(button.isPressed());
|
||||||
|
|||||||
Reference in New Issue
Block a user