Fix priority calculations.

This commit is contained in:
somehussar committed 2025-12-19 23:15:48 +01:00
1 parent 0cbfe526cb
commit 2efdafe254
2 files changed
+2 -2

No files matched your search

@@ -153,7 +153,7 @@ public class KeyPreset implements Comparable<KeyPreset> {
int mySpecialCount = getSpecialKeyCount(this);
int otherSpecialCount = getSpecialKeyCount(o);
return mySpecialCount - otherSpecialCount;
return otherSpecialCount - mySpecialCount;
}
private static int getSpecialKeyCount(KeyPreset preset) {
@@ -34,7 +34,7 @@ public class KeyPresetManager {
for (KeyPreset key : keys) {
key.tick();
if (key.isDown)
if (key.isDown && key.shouldConflict)
return;
}
}