[BUGFIX] Added check if there’s not already a key assigned

This commit is contained in:
JKetelaar
2016-10-17 02:50:29 +02:00
parent 0e6baf9b5f
commit 3e125c5211
@@ -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);
}