make tooltips even more reliable

This commit is contained in:
Bella 2020-04-17 08:26:28 -04:00
parent 8a340ff2b8
commit c0122d014c
No known key found for this signature in database
GPG Key ID: DBD4A6030080C8B3
1 changed files with 2 additions and 0 deletions

View File

@ -50,6 +50,8 @@ public class RootCheckButtonUI<T extends CheckButton> 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