diff --git a/src/main/java/me/zeroeightsix/kami/gui/kami/theme/kami/RootCheckButtonUI.java b/src/main/java/me/zeroeightsix/kami/gui/kami/theme/kami/RootCheckButtonUI.java index 72910470..d5c2ef69 100644 --- a/src/main/java/me/zeroeightsix/kami/gui/kami/theme/kami/RootCheckButtonUI.java +++ b/src/main/java/me/zeroeightsix/kami/gui/kami/theme/kami/RootCheckButtonUI.java @@ -50,6 +50,8 @@ public class RootCheckButtonUI extends AbstractComponentU Component componentAt = KamiMod.getInstance().guiManager.getComponentAt(DisplayGuiScreen.mouseX, DisplayGuiScreen.mouseY); if (componentAt.getHeight() != 11) return; // PREVENT DRAWING WHEN OUTSIDE THE CONTAINER // 11 is height of the regular module + if (componentAt.getWidth() != component.getWidth()) return; // prevent drawing 2 different categories when overlapped + glDisable(GL_SCISSOR_TEST); // let it draw outside of the container glDepthRange(0, 0.01); // set render priority to the top