Base functions and first module #1

Merged
c0de merged 18 commits from initial-functions into main 2023-03-22 23:20:13 +00:00
Showing only changes of commit e0caeec2fc - Show all commits

View File

@ -20,7 +20,6 @@ public class Fullbright extends Module {
this.toggleKey();
if (this.isState()) {
c0deFoxModClient.LOGGER.warn("Active State");
update(client, c0deFoxMod.config.getConfig().FULLBRIGHT_GAMMA);
return;
}
@ -29,13 +28,9 @@ public class Fullbright extends Module {
}
private void update(MinecraftClient client, double value) {
c0deFoxModClient.LOGGER.warn(String.valueOf(value));
if (client == null) return;
if (client.options.getGamma().getValue() == value) return;
c0deFoxModClient.LOGGER.warn("changing gamma");
client.options.getGamma().setValue(value);
if (client.player != null) client.player.sendMessage(Text.of(String.valueOf(value)), true);