Fixed possible NPE

This commit is contained in:
TheTemporatlist committed 2014-11-28 13:26:32 -05:00
1 parent 345704f8dd
commit 5f725cb971
1 file changed
+1 -1
@@ -104,7 +104,7 @@ public class ArmorControls {
private void checkKeys() {
for (KeyBinding key : this.keys) {
if (this.isKeyActive(key.getKeyCode())) {
if (key != null && this.isKeyActive(key.getKeyCode())) {
this.keyPressed(key);
}
}