mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-12 09:37:29 +00:00
Fix priority calculations.
This commit is contained in:
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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user