fix(window): prevent drawing when the window is not displayed

This commit is contained in:
extio-de
2026-04-07 23:06:16 +02:00
parent 8ef8a0aaaf
commit e3ce37ef82

View File

@@ -231,6 +231,9 @@ public class Window extends AbstractClientModule implements InitializingBean {
}
public void draw() {
if (!this.isDisplayed()) {
return;
}
if (this.area.getDimension().getX() <= 0 || this.area.getDimension().getY() <= 0) {
return;
}