Skip to content

Commit

Permalink
clean
Browse files Browse the repository at this point in the history
  • Loading branch information
TexBlock committed Sep 16, 2024
1 parent d035293 commit c2b9e14
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand All @@ -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")) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
Expand Down Expand Up @@ -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)
Expand Down
1 change: 0 additions & 1 deletion src/main/resources/assets/animatica/lang/en_us.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
{
"animatica.configuration.animatica": "Animatica",
"option.animatica.animated_textures": "Custom Animations"
}

0 comments on commit c2b9e14

Please sign in to comment.