From 905f8e568cc392b448fd937b2a459d29fd3fef42 Mon Sep 17 00:00:00 2001 From: ChomeNS <95471003+ChomeNS@users.noreply.github.com> Date: Sun, 28 May 2023 19:06:01 +0700 Subject: [PATCH] finally make fullbright configurable --- src/main/java/land/chipmunk/chipmunkmod/Configuration.java | 1 + .../java/land/chipmunk/chipmunkmod/modules/FullBright.java | 3 ++- src/main/resources/assets/chipmunkmod/default_config.json | 2 ++ 3 files changed, 5 insertions(+), 1 deletion(-) diff --git a/src/main/java/land/chipmunk/chipmunkmod/Configuration.java b/src/main/java/land/chipmunk/chipmunkmod/Configuration.java index 433ec10..919fd8c 100644 --- a/src/main/java/land/chipmunk/chipmunkmod/Configuration.java +++ b/src/main/java/land/chipmunk/chipmunkmod/Configuration.java @@ -10,6 +10,7 @@ public class Configuration { public CommandCore core = new CommandCore(); public Bots bots = new Bots(); public CustomChat customChat = new CustomChat(); + public boolean fullbright = true; // should this be false? public String autoSkinUsername = "off"; public static class CommandManager { diff --git a/src/main/java/land/chipmunk/chipmunkmod/modules/FullBright.java b/src/main/java/land/chipmunk/chipmunkmod/modules/FullBright.java index d9d2858..23eda1d 100644 --- a/src/main/java/land/chipmunk/chipmunkmod/modules/FullBright.java +++ b/src/main/java/land/chipmunk/chipmunkmod/modules/FullBright.java @@ -1,8 +1,9 @@ package land.chipmunk.chipmunkmod.modules; +import land.chipmunk.chipmunkmod.ChipmunkMod; import lombok.Getter; import lombok.Setter; public class FullBright { - @Getter @Setter private static boolean enabled = true; + @Getter @Setter private static boolean enabled = ChipmunkMod.CONFIG.fullbright; } diff --git a/src/main/resources/assets/chipmunkmod/default_config.json b/src/main/resources/assets/chipmunkmod/default_config.json index e3811f1..40dd3d4 100644 --- a/src/main/resources/assets/chipmunkmod/default_config.json +++ b/src/main/resources/assets/chipmunkmod/default_config.json @@ -32,5 +32,7 @@ } }, + "fullbright": true, + "autoSkinUsername": "off" }