fixed NPE issue

This commit is contained in:
sharlottes
2021-10-21 17:18:32 +09:00
parent 848636f412
commit 8fb09e95a3

View File

@@ -129,7 +129,7 @@ public class HudUi {
}
if((input.keyDown(KeyCode.shiftRight) || input.keyDown(KeyCode.shiftLeft))){
if(input.keyTap(KeyCode.r)) lockButton.change();
if(input.keyTap(KeyCode.r) && lockButton != null) lockButton.change();
}
if(settings.getBool("autoShooting")) {