Added check for screenshots

This commit is contained in:
ipkpjersi 2024-01-06 16:10:51 -05:00
parent 40b1fc47a6
commit d52be460c6

View file

@ -538,6 +538,9 @@ public final class client extends GameShell {
try {
Window window = KeyboardFocusManager.getCurrentKeyboardFocusManager().getFocusedWindow();
if (window == null) {
return;
}
Point point = window.getLocationOnScreen();
int x = (int) point.getX();
int y = (int) point.getY();