mirror of
https://github.com/2006-Scape/Parabot.git
synced 2026-07-03 08:39:09 +00:00
[BUGFIX] Added check if there’s not already a key assigned
This commit is contained in:
@@ -31,6 +31,11 @@ public class PBKeyListener implements KeyListener {
|
||||
}
|
||||
|
||||
public void addBinding(Binding binding) {
|
||||
for (Binding bind : this.bindings){
|
||||
if (bind.getKey() == binding.getKey()){
|
||||
return;
|
||||
}
|
||||
}
|
||||
this.bindings.add(binding);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user