forked from Clones/Controlify
fix unable to bind to GUI press button
This commit is contained in:
@ -96,7 +96,7 @@ public class BindButtonController implements Controller<IBind> {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean overrideControllerButtons(ScreenProcessor<?> screen, dev.isxander.controlify.controller.Controller controller) {
|
public boolean overrideControllerButtons(ScreenProcessor<?> screen, dev.isxander.controlify.controller.Controller controller) {
|
||||||
if (controller.bindings().GUI_PRESS.justPressed()) {
|
if (controller.bindings().GUI_PRESS.justPressed() && !awaitingControllerInput) {
|
||||||
return awaitingControllerInput = true;
|
return awaitingControllerInput = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user