From c22d4ff48b856191ecbee435a8460f5024858876 Mon Sep 17 00:00:00 2001 From: MicrocontrollersDev Date: Sat, 27 Apr 2024 20:58:10 -0500 Subject: [PATCH] 2.0.4 --- gradle.properties | 2 +- .../mixmetica/config/MixmeticaConfig.java | 27 +++++++++++++++++-- 2 files changed, 26 insertions(+), 3 deletions(-) diff --git a/gradle.properties b/gradle.properties index 281a941..56f11ee 100644 --- a/gradle.properties +++ b/gradle.properties @@ -3,7 +3,7 @@ mod_name=Mixmetica # Sets the id of your mod that mod loaders use to recognize it. mod_id=mixmetica # Sets the version of your mod. Make sure to update this when you make changes according to semver. -mod_version=2.0.3 +mod_version=2.0.4 # Sets the name of the jar file that you put in your 'mods' folder. mod_archives_name=Mixmetica diff --git a/src/main/java/dev/microcontrollers/mixmetica/config/MixmeticaConfig.java b/src/main/java/dev/microcontrollers/mixmetica/config/MixmeticaConfig.java index 0583640..a60142b 100644 --- a/src/main/java/dev/microcontrollers/mixmetica/config/MixmeticaConfig.java +++ b/src/main/java/dev/microcontrollers/mixmetica/config/MixmeticaConfig.java @@ -44,7 +44,8 @@ public class MixmeticaConfig extends Config { }; @Switch( - name = "Disable Cosmetics", + name = "Disable Cosmetica Cosmetics", + description = "This will revert back to using OptiFine cosmetics.", subcategory = "General" ) public static boolean disable = false; @@ -52,11 +53,33 @@ public class MixmeticaConfig extends Config { @Info( text = "Only use a custom instance if you know what you are doing.", type = InfoType.WARNING, - size=2, + size = 2, subcategory = "Instance" ) private boolean arcmeticaInstanceWarning = false; + @Info( + text = "If Cosmetica servers are down, use the disable toggle above.", + type = InfoType.INFO, + subcategory = "Status" + ) + public static boolean status = false; + + @Button( + name = "Check Cosmetica Status", + text = "Click", + subcategory = "Status" + ) + Runnable cosmeticaStatus = () -> { + if (Desktop.isDesktopSupported() && Desktop.getDesktop().isSupported(Desktop.Action.BROWSE)) { + try { + Desktop.getDesktop().browse(new URI("https://status.cosmetica.cc/")); + } catch (IOException | URISyntaxException e) { + throw new RuntimeException(e); + } + } + }; + @Switch( name = "Use Custom Arcmetica Instance", subcategory = "Instance"