diff --git a/src/main/java/io/github/foundationgames/animatica/Animatica.java b/src/main/java/io/github/foundationgames/animatica/Animatica.java index ebbed09..c66cc8f 100644 --- a/src/main/java/io/github/foundationgames/animatica/Animatica.java +++ b/src/main/java/io/github/foundationgames/animatica/Animatica.java @@ -21,6 +21,8 @@ import org.embeddedt.embeddium.api.OptionPageConstructionEvent; import org.embeddedt.embeddium.api.options.structure.StandardOptions; +import java.util.Locale; + @Mod(value = Animatica.NAMESPACE, dist = Dist.CLIENT) public class Animatica { public static final Logger LOG = LogManager.getLogger("Animatica"); @@ -36,7 +38,7 @@ public Animatica(IEventBus modEventBus, ModContainer modContainer) { event.registerReloadListener(AnimationLoader.INSTANCE); }); - modContainer.registerConfig(ModConfig.Type.CLIENT, AnimaticaConfig.SPEC); + modContainer.registerConfig(ModConfig.Type.CLIENT, AnimaticaConfig.SPEC, String.format(Locale.ROOT, "%s.toml", NAMESPACE)); modContainer.registerExtensionPoint(IConfigScreenFactory.class, ConfigurationScreen::new); if (ModList.get().isLoaded("embeddium")) { diff --git a/src/main/java/io/github/foundationgames/animatica/config/AnimaticaConfig.java b/src/main/java/io/github/foundationgames/animatica/config/AnimaticaConfig.java index c192b89..bf18338 100644 --- a/src/main/java/io/github/foundationgames/animatica/config/AnimaticaConfig.java +++ b/src/main/java/io/github/foundationgames/animatica/config/AnimaticaConfig.java @@ -19,7 +19,6 @@ public class AnimaticaConfig { static { BUILDER = new ModConfigSpec.Builder(); - BUILDER.push("animatica"); ANIMATED_TEXTURES = BUILDER.translation("option.animatica.animated_textures").define("animated_textures", true); SPEC = BUILDER.build(); } @@ -52,7 +51,7 @@ public static class EmbeddiumExtended { .setId(Animatica.id("animated_textures")) .add(OptionImpl.createBuilder(Boolean.TYPE, sodiumOpts) .setName(Text.translatable("option.animatica.animated_textures")) - .setTooltip(Text.of("")) + //.setTooltip(Text.of("")) .setControl(TickBoxControl::new) .setBinding((sodiumGameOptions, aBoolean) -> AnimaticaConfig.ANIMATED_TEXTURES.set(aBoolean), sodiumGameOptions -> AnimaticaConfig.ANIMATED_TEXTURES.get()) .setImpact(OptionImpact.VARIES) diff --git a/src/main/resources/assets/animatica/lang/en_us.json b/src/main/resources/assets/animatica/lang/en_us.json index 47c0e1f..b26b134 100644 --- a/src/main/resources/assets/animatica/lang/en_us.json +++ b/src/main/resources/assets/animatica/lang/en_us.json @@ -1,4 +1,3 @@ { - "animatica.configuration.animatica": "Animatica", "option.animatica.animated_textures": "Custom Animations" } \ No newline at end of file