play the thisDot song

This commit is contained in:
c0de 2023-03-21 22:19:00 -05:00
parent 7ea5b1d4ef
commit fea4169b57
2 changed files with 6 additions and 6 deletions

View File

@ -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;
}
}

View File

@ -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) {