diff --git a/gradle.properties b/gradle.properties index 3fd9f4c..a760f2c 100644 --- a/gradle.properties +++ b/gradle.properties @@ -8,7 +8,7 @@ yarn_mappings=1.21+build.9 loader_version=0.15.11 # Mod Properties - mod_version = 1.21-1.2 + mod_version = 1.21-1.2.1 maven_group = com.just_s archives_base_name = ctp-mod diff --git a/src/main/java/net/just_s/ctpmod/CTPMod.java b/src/main/java/net/just_s/ctpmod/CTPMod.java index 168a68b..b8de9e5 100644 --- a/src/main/java/net/just_s/ctpmod/CTPMod.java +++ b/src/main/java/net/just_s/ctpmod/CTPMod.java @@ -27,8 +27,6 @@ import net.minecraft.client.MinecraftClient; -import java.lang.reflect.Field; -import java.util.List; import java.util.Objects; @Environment(EnvType.CLIENT) diff --git a/src/main/java/net/just_s/ctpmod/config/ModMenuIntegration.java b/src/main/java/net/just_s/ctpmod/config/ModMenuIntegration.java index 6119637..5070ead 100644 --- a/src/main/java/net/just_s/ctpmod/config/ModMenuIntegration.java +++ b/src/main/java/net/just_s/ctpmod/config/ModMenuIntegration.java @@ -3,8 +3,6 @@ import com.terraformersmc.modmenu.api.ConfigScreenFactory; import com.terraformersmc.modmenu.api.ModMenuApi; import me.shedaniel.autoconfig.AutoConfig; -import me.shedaniel.autoconfig.gui.registry.api.GuiProvider; -import me.shedaniel.autoconfig.gui.registry.api.GuiRegistryAccess; import me.shedaniel.autoconfig.util.Utils; import me.shedaniel.clothconfig2.api.AbstractConfigListEntry; import me.shedaniel.clothconfig2.api.ConfigEntryBuilder; @@ -13,7 +11,6 @@ import net.fabricmc.api.Environment; import net.minecraft.text.Text; -import java.lang.reflect.Field; import java.util.ArrayList; import java.util.List; diff --git a/src/main/java/net/just_s/ctpmod/config/Point.java b/src/main/java/net/just_s/ctpmod/config/Point.java index a3914cc..a72d618 100644 --- a/src/main/java/net/just_s/ctpmod/config/Point.java +++ b/src/main/java/net/just_s/ctpmod/config/Point.java @@ -13,7 +13,6 @@ @Setter @AllArgsConstructor @NoArgsConstructor -@SuperBuilder public class Point { @ConfigEntry.Gui.Tooltip private String name; @@ -21,8 +20,11 @@ public class Point { private int startPeriod; @ConfigEntry.Gui.Tooltip private int endPeriod; - @ConfigEntry.Gui.Tooltip - private ModifierKeyCode keybind; + private ModifierKeyCode keybind = ModifierKeyCode.unknown(); + + public Point(String name, int startPeriod, int endPeriod) { + this(name, startPeriod, endPeriod, ModifierKeyCode.unknown()); + } @Override public String toString() { diff --git a/src/main/resources/assets/ctpmod/lang/en_us.json b/src/main/resources/assets/ctpmod/lang/en_us.json index 47f3157..6ac9a88 100644 --- a/src/main/resources/assets/ctpmod/lang/en_us.json +++ b/src/main/resources/assets/ctpmod/lang/en_us.json @@ -9,5 +9,6 @@ "text.autoconfig.ctpmod.option.Point.startPeriod": "Start Period Time", "text.autoconfig.ctpmod.option.Point.startPeriod.@Tooltip": "Amount of seconds before rejoining server", "text.autoconfig.ctpmod.option.Point.endPeriod": "End Period Time", - "text.autoconfig.ctpmod.option.Point.endPeriod.@Tooltip": "Amount of seconds after rejoining should not be executed" + "text.autoconfig.ctpmod.option.Point.endPeriod.@Tooltip": "Amount of seconds after rejoining should not be executed", + "text.autoconfig.ctpmod.option.Point.keybind": "KeyBind" } \ No newline at end of file