forked from Clones/Controlify
🐛 Fix calibration screen getting stuck if controller was disconnected
This commit is contained in:
@ -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