Skip to content

Commit df137df

Browse files
committed
FIxed last minute input validation code
1 parent 26d797d commit df137df

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/main/java/dev/isxander/controlify/gui/screen/BindConsumerScreen.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ public void tick() {
9797
List<Input> pressedBindCopy = currentInputs.stream().toList();
9898
// Input validation
9999
// This is done because sometimes it's possible to input a button twice.
100-
for (Input input : currentInputs) {
100+
for (Input input : pressedBinds) {
101101
if (pressedBindCopy.stream().noneMatch(storedInput -> storedInput.getRelevantInputs().containsAll(input.getRelevantInputs()))) {
102102
currentInputs.add(input);
103103
}

0 commit comments

Comments
 (0)