diff --git a/src/main/java/dev/c0de/minecraft/client/Module.java b/src/main/java/dev/c0de/minecraft/client/Module.java index 6c0a6ca..e785330 100644 --- a/src/main/java/dev/c0de/minecraft/client/Module.java +++ b/src/main/java/dev/c0de/minecraft/client/Module.java @@ -31,18 +31,18 @@ public abstract class Module { } public KeyBinding getKey() { - return key; + return this.key; } public void toggleKey() { - if (key != null) { - if (key.wasPressed()) { + if (this.key != null) { + if (this.key.wasPressed()) { this.setState(!this.isState()); } } } public boolean isState() { - return state; + return this.state; } } \ No newline at end of file diff --git a/src/main/java/dev/c0de/minecraft/client/modules/Fullbright.java b/src/main/java/dev/c0de/minecraft/client/modules/Fullbright.java index fd9cc55..b3284f9 100644 --- a/src/main/java/dev/c0de/minecraft/client/modules/Fullbright.java +++ b/src/main/java/dev/c0de/minecraft/client/modules/Fullbright.java @@ -19,11 +19,11 @@ public class Fullbright extends Module { this.toggleKey(); if (this.isState()) { - update(client, c0deFoxMod.config.getConfig().FULLBRIGHT_GAMMA); + this.update(client, c0deFoxMod.config.getConfig().FULLBRIGHT_GAMMA); return; } - update(client, DEFAULT); + this.update(client, DEFAULT); } private void update(MinecraftClient client, double value) {