Base functions and first module #1
@ -20,7 +20,6 @@ public class Fullbright extends Module {
|
|||||||
this.toggleKey();
|
this.toggleKey();
|
||||||
|
|
||||||
if (this.isState()) {
|
if (this.isState()) {
|
||||||
c0deFoxModClient.LOGGER.warn("Active State");
|
|
||||||
update(client, c0deFoxMod.config.getConfig().FULLBRIGHT_GAMMA);
|
update(client, c0deFoxMod.config.getConfig().FULLBRIGHT_GAMMA);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
@ -29,13 +28,9 @@ public class Fullbright extends Module {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private void update(MinecraftClient client, double value) {
|
private void update(MinecraftClient client, double value) {
|
||||||
c0deFoxModClient.LOGGER.warn(String.valueOf(value));
|
|
||||||
|
|
||||||
if (client == null) return;
|
if (client == null) return;
|
||||||
if (client.options.getGamma().getValue() == value) return;
|
if (client.options.getGamma().getValue() == value) return;
|
||||||
|
|
||||||
c0deFoxModClient.LOGGER.warn("changing gamma");
|
|
||||||
|
|
||||||
client.options.getGamma().setValue(value);
|
client.options.getGamma().setValue(value);
|
||||||
|
|
||||||
if (client.player != null) client.player.sendMessage(Text.of(String.valueOf(value)), true);
|
if (client.player != null) client.player.sendMessage(Text.of(String.valueOf(value)), true);
|
||||||
|
Loading…
Reference in New Issue
Block a user