improve request focus

This commit is contained in:
LabyStudio
2022-02-03 16:15:17 +01:00
parent 5eb1d03e5d
commit 9d15f934b0
@@ -131,6 +131,10 @@ window.GameWindow = class {
this.mouseX = event.clientX;
this.mouseY = event.clientY;
if (!this.mouseLocked && this.minecraft.currentScreen === null) {
this.requestFocus();
}
}
}