forked from Clones/Controlify
🐛 Fix calibration screen getting stuck if controller was disconnected
This commit is contained in:
1 parent
23f9bc8d1a
commit
adc439128f
1 file changed
+5
+5
@@ -96,6 +96,11 @@ public class ControllerDeadzoneCalibrationScreen extends Screen {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void tick() {
|
public void tick() {
|
||||||
|
if (!ControllerManager.isControllerConnected(controller.uid())) {
|
||||||
|
onClose();
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
if (!calibrating)
|
if (!calibrating)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user