Update ClickGUI.java

This commit is contained in:
kirillsaint 2023-08-06 19:00:51 +06:00
parent 6ec3475ed2
commit 2f1ae8155b

View File

@ -124,7 +124,7 @@ public class ClickGUI extends SilentScreen {
if(selectedCategory != ModCategory.PLUS && selectedCategory != ModCategory.CONFIGS) {
for(Mod m : getMods()) {
if(mouseInContent(x, (int) (modOffsetY - scrollAnimation.getValue()), y, height - 25) || mouseInContent(x, (int) (modOffsetY - scrollAnimation.getValue() + 70), y, height - 25)) {
if(mouseInContent(x, (int) (y + modOffsetY - scrollAnimation.getValue()), y + 25, height - 25) || mouseInContent(x, (int) (y + modOffsetY - scrollAnimation.getValue() + 70), y + 25, height - 25)) {
float switchX = modOffsetX + ((65 / 2) - (15 / 2));
float switchY = y + modOffsetY - scrollAnimation.getValue() + 55;
boolean switchHovered = selectedCategory.equals(ModCategory.MODS) && Switch.isHovered(mouseX, mouseY, switchX, switchY) && !headerHovered;