diff --git a/src/main/java/dev/resent/module/base/Mod.java b/src/main/java/dev/resent/module/base/Mod.java index 1d8e7036..4482f3ce 100644 --- a/src/main/java/dev/resent/module/base/Mod.java +++ b/src/main/java/dev/resent/module/base/Mod.java @@ -79,8 +79,8 @@ public abstract class Mod { } public boolean isEnabled() { return enabled; } - public boolean isHasSetting() { return hasSetting; } - public String gdoeoetveavee() { return name; } + public boolean doesHaveSetting() { return hasSetting; } + public String getName() { return name; } public Category getCategory() { return category; } public void setName(String name) { this.name = name; } diff --git a/src/main/java/dev/resent/visual/ui/clickgui/ClickGUI.java b/src/main/java/dev/resent/visual/ui/clickgui/ClickGUI.java index a417fe32..33040684 100644 --- a/src/main/java/dev/resent/visual/ui/clickgui/ClickGUI.java +++ b/src/main/java/dev/resent/visual/ui/clickgui/ClickGUI.java @@ -68,7 +68,7 @@ public class ClickGUI extends GuiScreen { for (Mod m : Resent.INSTANCE.modManager.modsInCategory(selectedCategory) ) { int fh = 9; - if (isMouseInside(mouseX, mouseY, this.x + 90 + xo - 1 + 10, height - 2 - fh * -(off) + 51 - 1 - offset, this.x + 90 + xo - 1 + 21, height + 30 - fh * (-off) + 30 - 1 + 2 - 1 - offset) && m.doesHaveSettinging() && openedMod == null) { + if (isMouseInside(mouseX, mouseY, this.x + 90 + xo - 1 + 10, height - 2 - fh * -(off) + 51 - 1 - offset, this.x + 90 + xo - 1 + 21, height + 30 - fh * (-off) + 30 - 1 + 2 - 1 - offset) && m.doesHaveSetting() && openedMod == null) { // Open settings this.openedMod = m; } else if (isMouseInside(mouseX, mouseY, x - 9 + 2, height + 27 + 9 + 2, x - 9 + 6 + fr.getStringWidth("<"), height + 33 + 9 + 2 + fr.getStringWidth("<")) && mouseButton == 0) { @@ -213,7 +213,7 @@ public class ClickGUI extends GuiScreen { ); } - if (m.doesHaveSettinging()) { + if (m.doesHaveSetting()) { GlStateManager.enableBlend(); this.mc.getTextureManager().bindTexture(new ResourceLocation("eagler:gui/gear.png")); Gui.drawModalRectWithCustomSizedTexture(this.x + 99 + xo, height - 2 - fh * -(off) + 51 + 1 - offset, 0, 0, 8, 8, 8, 8);