mirror of
https://github.com/2006-Scape/Parabot.git
synced 2026-07-07 16:49:10 +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) {
|
public void addBinding(Binding binding) {
|
||||||
|
for (Binding bind : this.bindings){
|
||||||
|
if (bind.getKey() == binding.getKey()){
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
}
|
||||||
this.bindings.add(binding);
|
this.bindings.add(binding);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user