From 5d6d685b8bdeaa51ff798a4715eacb03dc264e6f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hasan=20Demirta=C5=9F?= Date: Mon, 30 Sep 2024 23:30:42 +0300 Subject: [PATCH] Update ElementEventHandlerItem.java --- .../java/net/infumia/frame/element/ElementEventHandlerItem.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/main/java/net/infumia/frame/element/ElementEventHandlerItem.java b/core/src/main/java/net/infumia/frame/element/ElementEventHandlerItem.java index 70e2861..2d41054 100644 --- a/core/src/main/java/net/infumia/frame/element/ElementEventHandlerItem.java +++ b/core/src/main/java/net/infumia/frame/element/ElementEventHandlerItem.java @@ -36,6 +36,7 @@ public CompletableFuture handleRender( this.forceRender(element, context); return CompletableFuture.completedFuture(ConsumerService.State.CONTINUE); } + element.visible(false); return this.checkOverlapping(element, context); } @@ -87,7 +88,6 @@ private CompletableFuture checkOverlapping( @NotNull final ElementRich compareTo, @NotNull final ContextElementRender context ) { - compareTo.visible(false); final Optional overlappingOptional = this.findOverlappingElement(compareTo, context); if (!overlappingOptional.isPresent()) {