mirror of
https://github.com/AngelAuraMC/Amethyst-Android.git
synced 2026-04-20 09:37:07 -04:00
Fix: crash on virtual mouse enabled on start
This commit is contained in:
@@ -184,8 +184,9 @@ public class MainActivity extends BaseActivity implements ControlButtonMenuListe
|
||||
minecraftGLView.setSurfaceReadyListener(() -> {
|
||||
try {
|
||||
// Setup virtual mouse right before launching
|
||||
if (PREF_VIRTUAL_MOUSE_START)
|
||||
touchpad.switchState();
|
||||
if (PREF_VIRTUAL_MOUSE_START) {
|
||||
touchpad.post(() -> touchpad.switchState());
|
||||
}
|
||||
|
||||
runCraft();
|
||||
}catch (Throwable e){
|
||||
|
||||
Reference in New Issue
Block a user